Start learning →

How does hiding an object's internal representation protect its integrity?

APrevents invalid state
BEnables swift parsing
CLowers stack memory
DSpeeds up compilation
Answer & Solution
Correct answer: A. Prevents invalid state
Hiding internal state prevents outside code from creating invalid object values.
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 →