How do you create an n number object in C++?

The syntax for creating n objects is: object o[n]; All objects in o will be fully allocated and have their constructors called. They are ready to take data and perform their member functions.

Sizin İçin Seçtik  What is constructor and why we should use it?

Leave a Reply

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