Multiple inheritance is ____________________

Multiple inheritance is ____________________
A. When a class is derived from another class
B. When a class is derived from two or more classes
C. When a class is derived from other two derived classes
D. When a class is derived from exactly one class
 
Answer: b
Explanation: The multiple inheritance is used when a class is being derived using two base classes or more. This way a single class can have features of more than one classes inherited into a single unit. This lets us combine two class members into a single class.
 

Tìm kiếm

Back
Top