An interface is most useful when you want to:

Practice this question from Quiz: OOPS Revision Sheet, with options and an explanation.

Question

An interface is most useful when you want to:

Option A

Store binary data

Option B — Correct answer

Define a contract that multiple implementations can follow

Option C

Avoid all polymorphism

Option D

Replace every abstract class automatically

Quiz: OOPS Revision Sheet

All questions · Previous question · Next question

Open on QuizMaker