C++ Multilevel Inheritance

If a class is derived from another derived class then it is called multilevel inheritance. So in C++ multilevel inheritance, a class has more than one parent class.

For example, if we take animals as a base class then mammals are the derived class which has features of animals and then humans are the also derived class that is derived from sub-class mammals which inherit all the features of mammals.

C++ Multilevel Inheritance Block Diagram

Here is the block diagram of C++ multilevel inheritance to make it clear.