Object-Oriented Programming (OOP)
The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms?
Difficulty: Medium
About this MCQ
This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms?”
The accepted answer is A. Super keyword. The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms is answered by Super keyword option A Option B Static binding does not match the stem it is a near-miss used to catch incomplete recall of Super keyword Option C Singleton pattern does not match the stem it is a near-miss used to catch incomplete recall of Super keyword Remaining alternatives Composition over inheritance fall outside the same rule and should be eliminated once Super keyword is identified Object-Oriented Programming OOP questions of this type reward precise definitions rather than approximate associations Object-Oriented Programming OOP recall of this distinction is a.
- A. Super keyword ✓
- B. Static binding
Why not B: “Static binding” is not correct. The accepted answer is A. Super keyword. The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms is answered by Super keyword op
- C. Singleton pattern
Why not C: “Singleton pattern” is not correct. The accepted answer is A. Super keyword. The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms is answered by Super keyword op
- D. Composition over inheritance
Why not D: “Composition over inheritance” is not correct. The accepted answer is A. Super keyword. The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms is answered by Super keyword op
Correct answer
A. Super keyword
Explanation
The concept in which a keyword used in a subclass to refer to members or methods of its immediate parent class is best known as which of these terms is answered by Super keyword option A Option B Static binding does not match the stem it is a near-miss used to catch incomplete recall of Super keyword Option C Singleton pattern does not match the stem it is a near-miss used to catch incomplete recall of Super keyword Remaining alternatives Composition over inheritance fall outside the same rule and should be eliminated once Super keyword is identified Object-Oriented Programming OOP questions of this type reward precise definitions rather than approximate associations Object-Oriented Programming OOP recall of this distinction is a.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- Which of the following best names the concept in which the process by which objects communicate with one anoth...
- What term describes the following? a design guideline suggesting that building complex behavior by combining o...
- Choose the correct description of Singleton pattern.
- In computer science, Composition over inheritance refers to which of the following?
- A design pattern that restricts the instantiation of a class to a single shared object. What is this concept c...
- Select the correct name for: the practice of restricting direct access to an object's internal data to protect...