Constructor:
Constructor are the member function that are executed automatically. When an object is created, no explicit call is necessary to involve them through the dot operator.It is called constructor because it construct the value of data member of the class. Constructor are mainly used for data initialization.