Skip to content
Sharp

Object-oriented programming · interview question

How does an abstract class differ from a concrete class?

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

Correct answer

D. An abstract class can have abstract methods.

Why

An abstract class can declare abstract methods that do not have implementations, requiring subclasses to provide them. It can have constructors and fields like a concrete class.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →