ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: c098cb51
Which of the following statements best describes the conceptual relationship between Encapsulation and Inheritance in Object-Oriented Programming?
Which of the following statements best describes the conceptual relationship between Encapsulation and Inheritance in Object-Oriented Programming?
Multiple Choice Options
- A
Encapsulation and inheritance are synonyms for the same mechanism
- B✓ Correct Option
They are orthogonal OOP principles: encapsulation enforces information hiding, while inheritance enables structural reuse and subtyping
- C
Inheritance supersedes and eliminates the need for encapsulation
- D
Encapsulation cannot exist without multiple inheritance
Detailed Technical Solution & Explanation
Encapsulation (data hiding, binding data with operations) and Inheritance (extending existing abstractions) are orthogonal design principles in OOP that complement each other.
Option Analysis:
•
Option A (Encapsulation and inheritance are syn...): False; distinct mechanisms.
•
Option B (They are orthogonal OOP principles: e...): Correct. Encapsulation manages internal visibility and integrity; inheritance manages class hierarchies and reuse.
•
Option C (Inheritance supersedes and eliminates...): False; poor encapsulation undermines inheritance hierarchies.
•
Option D (Encapsulation cannot exist without mu...): False.
Reference: Mock Test 06NEC Licensure Syllabus