Skip to content
Sharp

Object-oriented programming · interview question

What does it mean if a method in Product is static?

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

Correct answer

B. It can be called without an instance of Product.

Why

A static method can be called without creating an instance of the class, meaning it's associated with the class itself rather than any particular object.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →