class derived: public base1, public base2 { } is an example of

Options
- Polymorphic inheritance
- Multilevel inheritance
- Hierarchical inheritance
- Multiple inheritance


CORRECT ANSWER : Multiple inheritance

Discussion Board
C++ - Inheritance

class derived: public base1, public base2 { } is an example of Multiple Inheritance. In Multiple Inheritance, one class is derived from multiple classes.

Prajakta Pandit 01-25-2017 06:23 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement