Question

What is the purpose of an interface in object-oriented programming?

A It is a way to define a blueprint for a class.
B It is a way to create instances of a class.
C It is a way to represent the relationships between different objects.
D It is a way to hide the internal details of an object.
Practice Next

Relevant for Exams:

Hey! Ask a query