Start learning →

Why can inheritance break encapsulation according to design principles?

ABlocks method calls
BExposes parent code
CLimits variable type
DHalts code execution
Answer & Solution
Correct answer: B. Exposes parent code
Inheritance can compromise encapsulation by exposing parent implementation details.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →