Object-Oriented Programming (OOP)
Select the accurate description of Interface.
- A. The ability to define multiple methods with the same name but different parameters in a class.
- B. An OOP mechanism that allows a class to acquire properties and behaviors from another class.
- C. A contract that defines a set of methods a class must implement without specifying how. ✓
- D. A reference used within a class to refer to the current instance of the object.
Correct answer
C. A contract that defines a set of methods a class must implement without specifying how.
Explanation
Interface refers to a contract that defines a set of methods a class must implement without specifying how.