In C++, which type of inheritance involves inheriting from multiple base classes, but only inheriting one level deep from each base class?
A. Hierarchical inheritance
B. Multilevel inheritance
C. Single inheritance
D. None of the above
Answer: Option B
Related Questions on Inheritance in C plus plus
A. Multilevel inheritance
B. Hierarchical inheritance
C. Multiple inheritance
D. Single inheritance
A. public
B. private
C. friend
D. protected
What is the process of defining a new class based on an existing class in C++ called?
A. Inheritance
B. Composition
C. Encapsulation
D. Polymorphism

Join The Discussion