ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: 114df7ef
In C++, how many parent base classes must be present to establish multiple inheritance?
In C++, how many parent base classes must be present to establish multiple inheritance?
Multiple Choice Options
- A
At least 1
- B✓ Correct Option
At least 2
- C
At most 2
- D
3 or more
Detailed Technical Solution & Explanation
Multiple inheritance is defined as the mechanism where a derived class inherits characteristics (data and functions) from more than one base class simultaneously. Therefore, to constitute multiple inheritance, there must be at least two base classes (and one derived class, totaling at least 3 classes in the system).
Option Analysis:
•
Option A (At least 1): Incorrect. One base class constitutes single inheritance.
•
Option B (At least 2): Correct. The derived class must have at least 2 distinct parent base classes.
•
Option C (At most 2): Incorrect. A class can inherit from 3, 4, or more base classes.
•
Option D (3 or more): Incorrect as a base class count restriction.
Reference: Demo2 · Set 2NEC Licensure Syllabus