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
Answer and explanation
Concise answer
The data and the operations associated with each account are grouped together
Why this is correct
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.
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.
