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
Model answer
What a good answer should say
- To hide details of an object that do not contribute to its essential characteristics
Explanation
Why this works
Information hiding focuses on concealing non-essential details while retaining the characteristics that are essential to the object.
Common mistake
No common mistake is linked to this question yet.
