Object-Oriented Programming (OOP)
Identify the correct definition of Super keyword.
- A. A special method automatically invoked when an object is destroyed, used to release resources.
- B. A keyword that controls the visibility and accessibility of a class's members, such as public or private.
- C. A keyword used in a subclass to refer to members or methods of its immediate parent class. ✓
- D. A relationship between two separate classes that establishes a connection through their objects.
Correct answer
C. A keyword used in a subclass to refer to members or methods of its immediate parent class.
Explanation
Super keyword refers to a keyword used in a subclass to refer to members or methods of its immediate parent class.