Which type of class inheritance allows a derived class to inherit attributes and methods from more than one base class?
- Single
- Multilevel
- Multiple
- Hierarchical
Multiple inheritance in C++ allows a derived class to inherit attributes and methods from more than one base class. This contrasts with single inheritance where a class can inherit only from one superclass. C++ supports multiple inheritance, unlike some other OO languages.
Loading...
Related Quiz
- How does a range-based for loop work in C++11 and above?
- What potential issue might arise when using switch-case statements with enumerated types?
- If a break statement is encountered in a nested loop, it will exit _______.
- Which access specifier allows a class member to be accessible only within its own class and friends?
- The concept of encapsulation involves bundling the data () and the methods () that operate on the data into a single unit.