Exam-style question
Try this first
What is the main purpose of data abstraction?.
- A.To expose every implementation detail of a data object
- B.To isolate how a compound data object is used from how it is constructed
- C.To ensure that all data objects are represented as arrays
- D.To remove the need for data objects in a program
Model answer
What a good answer should say
- To isolate how a compound data object is used from how it is constructed
Explanation
Why this works
Data abstraction separates the way a compound data object is used from the details of its construction.
Common mistake
No common mistake is linked to this question yet.
