Exam-style question
Try this first
What is the main purpose of information hiding?.
- A.To hide details of an object that do not contribute to its essential characteristics
- B.To remove all data from an object
- C.To make every implementation detail visible to users
- D.To ensure that an object contains no operations
Answer and explanation
Concise answer
To hide details of an object that do not contribute to its essential characteristics
Why this is correct
Information hiding focuses on concealing non-essential details while retaining the characteristics that are essential to the object.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
