Skip to content
Sharp

Object-oriented programming · interview question

Which concept allows a subclass to provide a specific implementation of a method that is already defined in its superclass?

Multiple choiceEasychapter-5-curatedpremiumooppolymorphism
Choose one answer
Answer and explanation

Correct answer

B. Overriding

Why

Overriding allows a subclass to provide a specific implementation of a method that is already defined in its superclass. This is a key feature of polymorphism, enabling dynamic method dispatch.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →