Can constructor be inherited C++?

Cpp Primer Plus says, Constructors are different from other class methods in that they create new objects, whereas other methods are invoked by existing objects. This is one reason constructors aren’t inherited .

Sizin İçin Seçtik  How do you define a class in C?

Leave a Reply

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