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.
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.
please comment for any queries.
ReplyDeleteNice
ReplyDelete