Skip to content
Sharp

Object-oriented programming · interview question

What happens when a subclass does not implement an abstract method from its superclass?

Multiple choiceEasychapter-5-curatedpremiumoopabstract-classes
Choose one answer
Answer and explanation

Correct answer

C. The subclass becomes abstract.

Why

If a subclass does not implement an abstract method from its superclass, the subclass itself must be declared abstract.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →