What is the primary purpose of an interface in OOP?

What is the primary purpose of an interface in OOP?

  1. A.

    To provide a blueprint for creating objects

  2. B.

    To define a set of methods that must be implemented by implementing classes

  3. C.

    To define constructors for classes

  4. D.

    To create static methods

Attempted by 88 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Computer Operator Grade B

Loading lesson…