Multiple Inheritance

C++ allows a special kind of inheritance known as multiple inheritance. While most object oriented languages support inheritance, not all of them support multiple inheritance. (Java is one such example).

Multiple Inheritance simply means that a class can inherit properties from more than one base class. In other words, a class can inherit from multiple parent classes -- it's not limited to just one.

Example

Multiple Inheritance and OOP

Multiple inheritance code example