Exam-style question
Try this first
A design represents each bank account as an object containing account data and operations such as depositing and withdrawing. What is the strongest reason for classifying this design as object-oriented?.
- A.The data and the operations associated with each account are grouped together
- B.The design must contain no procedures
- C.The design uses more variables than a procedural design
- D.The design can only be implemented in one programming language
Model answer
What a good answer should say
- The data and the operations associated with each account are grouped together
Explanation
Why this works
Grouping data with the operations that act on it is a defining characteristic of the object-oriented approach. The other statements do not describe a necessary characteristic.
Common mistake
No common mistake is linked to this question yet.
