Multiple Inheritance
In the previous example, we created a derived class that inherited from a single base class, but one of the many great features of C++ is that multiple inheritance is supported. This means that a single derived class can inherit variables and functionality from multiple base classes to create a more complex object. Everything we learned about single inheritance remains true, the only difference is that the inherited members would come from multiple sources.
The syntax to inherit from multiple classes is as follows:
class DerivedClassName : [access modifier] BaseClassName, [access modifier] AnotherBaseClassName
The following inheritance diagram shows how the directed class has two base classes from which it will inherit members:
C++ doesn't implement a hard limit on the number of classes that can be inherited from; it's implementation-specific, though the C++ standard...