What is inheritance in OOP C++?

Inheritance is one of the key features of Object-oriented programming in C++. It allows us to create a new class (derived class) from an existing class (base class) . The derived class inherits the features from the base class and can have additional features of its own.

Sizin İçin Seçtik  What are base class and derived class with reference to OOP?

Leave a Reply

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