Beginner Object-Oriented Programming Concepts
Q18 / 100

What is an "interface" in OOP?

Correct! Well done.

Incorrect.

The correct answer is A) A contract that specifies methods a class must implement, without providing their implementation

A

Correct Answer

A contract that specifies methods a class must implement, without providing their implementation

Explanation

An interface declares method signatures that implementing classes must provide, enabling polymorphism without shared inheritance.

Progress
18/100