Multi-Level Inheritance in C++

The mechanism of deriving a class from another derived class is known as multi-level inheritance in C++ It is not uncommon that a class is derived from another derived class as shown below: The class A serves as a base class for the derived class B which in turn serves as a base class for the derived class C. The class B is known as intermediate base class since it provides a link for the inheritance between A and C. The chain A -> B -> C is known as inheritance path. A derived class with multi-level inheritance is declared as follows: class A //Base Class { … }; class B : public A //B derived from A { … }; class C : public B //C derived from B { … }; This process can be extended to any number of levels. Let us consider the below example: Assume...