21.8. Multiple Inheritance and virtual Base Classes
In Section 21.7, we discussed multiple inheritance, the process by which one class inherits from two or more classes. Multiple inheritance is used, for example, in the C++ standard library to form class
basic_iostream (Fig. 21.12).
basic_ios is the base class for both
basic_ostream, each of which is formed with single inheritance. Class
basic_iostream inherits from both
basic_ostream. This enables class
basic_iostream objects to provide the functionality of