What is a parameterized constructor in C++?

In C++, Constructor is automatically called when the object(an instance of the class) create.It is the special member function of the class. The constructor has arguments is called as a Parameterized Constructor. It has the same name of the class. It must be a public member. No Return Values.

Sizin İçin Seçtik  What is difference between class and object in Java?

Leave a Reply

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