Inheritance in C++

Inheritance is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification. For example, the bird ‘robin’ is a part of the class ‘flying bird’ which is again the part of the class bird. In OOP, the concept of inheritance provides the idea of reusability. This means that we can add additional features to both classes.

Types of Inheritance
Types of Inheritance

Translate »