What is multiple inheritance in C++ with example?

Multiple Inheritance is a feature of C++ where a class can inherit from more than one classes . The constructors of inherited classes are called in the same order in which they are inherited. For example, in the following program, B’s constructor is called before A’s constructor.

Leave a Reply

Your email address will not be published. Required fields are marked *