A Constructor is a method which has the same name of the class it is in, it used to initialize the member/instance variables.
Has the same name as of the class it is in.
Used only to initialize the data members (instance variables).
Is called by just making an object [class_name object = new constructor_name()].
Needs no variable.
Is always public.
If many constructors are created of the same name the constructor will automatically overloaded when the object is called.
(i) Default Constructor: Used to initialize default values of variables.
(ii) Non-Parametrized Constructors: Used to initialize the instance variables with an empty parameter.
(iii) Parametrized Constructor: Used to initialize the instance variables with the help of parameters, passed at the time of creating an object.
(iv) Copy Constructor: Used to initialize the instance variables by coping the values from another object.