Simply the Constructor is a function that will be called when you define an object of the class...
it mostly used for initiate data members and set default values.
Example:
class Student
{
private int Id;
Private String Name;
private Student()
{
Id = 0;
Name = "ABC";
}
}
So now when ever you create a Student Object it will take the default values.
Regards