Multiple Inheritance

C++ Multiple Inheritance

Multiple inheritance is such an inheritance in which a derived class inherits properties of more than one base class.

 

C++ Multiple Inheritance Example

In this example, two base classes Square and Show are inherited in one derived class Area.

Output:

Leave a Comment