What is constructor in C++ in simple words?

A constructor in C++ is a special method that is automatically called when an object of a class is created .

Sizin İçin Seçtik  Do inherited classes need constructors?

Leave a Reply

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