Skip to content
Sharp

Object-oriented programming · interview question

In a store modeling application, what class design can help manage Product stock levels properly?

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

Correct answer

C. A Warehouse class that manages stock levels.

Why

A Warehouse class can encapsulate stock management, providing a centralized place to handle inventory operations and maintaining separation of concerns.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →