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.