What is the primary purpose of an interface in OOP?

Bihar STET · PGT (Paper 2) · Computer Science · 2025

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

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Explore the full course: Bihar Stet Paper Ii Computer Science

Loading lesson…