ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: 77ed368d
Multiple inheritance of classes (class C extends A, B) is explicitly NOT supported by which programming language?
Multiple inheritance of classes (class C extends A, B) is explicitly NOT supported by which programming language?
Multiple Choice Options
- A
C++
- B✓ Correct Option
Java
- C
Python
- D
Common Lisp
Detailed Technical Solution & Explanation
Java does not support multiple inheritance of classes (a class cannot extend more than one class) in order to avoid ambiguity and the 'Diamond Problem'. Instead, Java achieves multiple interface inheritance via implements.
Option Analysis:
•
Option A (C++): Fully supports multiple class inheritance.
•
Option B (Java): Correct. Multiple class inheritance is disallowed; interfaces must be used.
•
Option C (Python): Supports multiple inheritance using C3 linearization (MRO).
•
Option D (Common Lisp): Supports multiple inheritance via CLOS.
Reference: Mock Test 05NEC Licensure Syllabus