WHAT IS CONSTRUCTOR ?

A Constructor is a special member function of class because its name is same as the class name.it is called constructor because it construct the values of the data member of the class and it cannot return any values.

if a class has constructor each object of that type is initilized with the constructor to use in a program.constructor are called at the point where an object of the class is created.










Comments

Post a Comment

Popular posts from this blog

How to start windows update service

Definition and example of parameterized constructor.