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?
- A.
To provide a blueprint for creating objects
- B.
To define a set of methods that must be implemented by implementing classes
- C.
To define constructors for classes
- D.
To create static methods
Attempted by 502 students.
Show answer
Correct answer: B
Explore the full course: Bihar Stet Paper Ii Computer Science
Loading lesson…