Skip to content
Sharp

Object-oriented programming · interview question

Which of the following scenarios best fits the use of an abstract class?

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

Correct answer

C. A class that provides a base implementation for related objects.

Why

An abstract class is ideal for providing a base implementation for related objects, allowing shared code and behavior among subclasses.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →