Multi-level Inheritance

We'll cover the following

If we want to inherit data members and member functions of the base class which is already inherited from another class, the concept of multilevel inheritance comes in. This contains a more hierarchical approach.

class parent
class child : public parent
class grandChild : public child

Example

Let’s take the example of Vehicle class which acts as a parent to Car class. Now Car class acts as a parent to Honda class.

Get hands-on with 1400+ tech skills courses.