Can we pass constructor in inheritance?

To pass arguments to a constructor in a base class, use an expanded form of the derived class’ constructor declaration, which passes arguments along to one or more base class constructors .

Sizin İçin Seçtik  How many types of inheritance are there in C++?

Leave a Reply

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