Skip to content
Sharp

Object-oriented programming · interview question

Which sign most clearly shows that object collaboration is improving compared with one giant main method?

Multiple choiceHardchapter-2-curatedpremiumoopobject-interaction
Choose one answer
Answer and explanation

Correct answer

D. Each object contributes one understandable part of the workflow instead of one method knowing everything

Why

A healthier design lets Cart, CartItem, Product, and Customer each answer the questions that match their roles. That is much easier to read than one procedural method that knows every detail of the program.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →