Object-Oriented Programming (OOP)
Identify the correct definition of Super keyword.
Difficulty: Medium
About this MCQ
This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “Identify the correct definition of Super keyword.”
The accepted answer is C. A keyword used in a subclass to refer to members or methods of its immediate parent class.. Super keyword refers to a keyword used in a subclass to refer to members or methods of its immediate parent class.
- A. A special method automatically invoked when an object is destroyed, used to release resources.
Why not A: “A special method automatically invoked when an object is destroyed, used to release resources.” is not correct. The accepted answer is C. A keyword used in a subclass to refer to members or methods of its immediate parent class.. Super keyword refers to a keyword used in a subclass to refer to members or methods of its immediate parent class.
- B. A keyword that controls the visibility and accessibility of a class's members, such as public or private.
Why not B: “A keyword that controls the visibility and accessibility of a class's members, such as public or private.” is not correct. The accepted answer is C. A keyword used in a subclass to refer to members or methods of its immediate parent class.. Super keyword refers to a keyword used in a subclass to refer to members or methods of its immediate parent class.
- 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.
Why not D: “A relationship between two separate classes that establishes a connection through their objects.” is not correct. The accepted answer is C. A keyword used in a subclass to refer to members or methods of its immediate parent class.. Super keyword refers to a keyword used in a subclass to refer to members or methods of its immediate parent class.
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.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- The concept in which a special method automatically invoked when an object is destroyed, used to release resou...
- Identify the correct definition of Destructor.
- What term describes the following? a class member that belongs to the class itself rather than to any individu...
- In computer science, Static member refers to which of the following?
- Select the correct name for: a keyword that controls the visibility and accessibility of a class's members, su...
- Which statement correctly explains Access modifier?