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  Is a constructor necessary?

Leave a Reply

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