Exam-style question
Try this first
Which statement correctly compares the two forms of composition in the specification?.
- A.Composition combines procedures for a composition abstraction and data objects for a data abstraction
- B.Composition combines data objects only and cannot involve procedures
- C.Composition means copying one procedure without combining it with anything
- D.Composition is limited to storing a single value
Answer and explanation
Concise answer
Composition combines procedures for a composition abstraction and data objects for a data abstraction
Why this is correct
The specification distinguishes between combining procedures to form compound procedures and combining data objects to form compound data.
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.
