Which one of the following most accurately describes "multiple inheritance" ?
- AWhen a child class has both an "is a" and a "has a" relationship with its parent class.
- BWhen two classes inherit from each other.
- CWhen a base class has two or more derived classes.
- DWhen a child class has two or more parent classes.
Show answerHide answer
Correct answer: (D) When a child class has two or more parent classes.
Explanation
Multiple inheritance means one derived (child) class inherits from two or more base (parent) classes.