What is the primary purpose of an interface in OOP?

Bihar STET 2025Bihar STET 2023

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 1420 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…