What is constructor how it works explain with example?

A constructor is a special type of member function of a class which initializes objects of a class . In C++, Constructor is automatically called when object(instance of class) create. It is special member function of the class because it does not have any return type.

Sizin İçin Seçtik  Normlar hiyerarşisi kim buldu?

Leave a Reply

Your email address will not be published. Required fields are marked *