Object-Oriented Programming (OOP)
Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.
Difficulty: Easy
About this MCQ
This Easy Object-Oriented Programming (OOP) MCQ checks one syllabus fact.
The question is: “Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.”
The accepted answer is D. Inheritance. “Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.” is answered by Inheritance (option D). Option A (“Method overriding”) does not match the stem; it is a near-miss used to catch incomplete recall of Inheritance. Option B (“Constructor”) does not match the stem; it is a near-miss used to catch incomplete recall of Inheritance. Remaining alternatives (Encapsulation) fall outside the same rule and should be eliminated once Inheritance 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 regular item in FPSC, PPSC, NTS, and CSS papers.
- A. Method overriding
Why not A: “Method overriding” is not correct. The accepted answer is D. Inheritance. “Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.” is answered by Inheritance (option D). Opt
- B. Constructor
Why not B: “Constructor” is not correct. The accepted answer is D. Inheritance. “Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.” is answered by Inheritance (option D). Opt
- C. Encapsulation
Why not C: “Encapsulation” is not correct. The accepted answer is D. Inheritance. “Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.” is answered by Inheritance (option D). Opt
- D. Inheritance ✓
Correct answer
D. Inheritance
Explanation
“Identify the correct concept described as: an OOP mechanism that allows a class to acquire properties and behaviors from another class.” is answered by Inheritance (option D). Option A (“Method overriding”) does not match the stem; it is a near-miss used to catch incomplete recall of Inheritance. Option B (“Constructor”) does not match the stem; it is a near-miss used to catch incomplete recall of Inheritance. Remaining alternatives (Encapsulation) fall outside the same rule and should be eliminated once Inheritance 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 regular item in FPSC, PPSC, NTS, and CSS papers.
Source: Object-Oriented Programming (OOP) Official Reference Guide
Tags: computer science, oop, object-oriented programming, software design
Submitted by: MCQsHub Editorial
Related MCQs
- What is the name for an instance of a class that contains actual values for the properties defined by the clas...
- An OOP concept that allows objects of different classes to be treated through a common interface. What is this...
- What does Class refer to?
- Choose the correct description of Polymorphism.
- Which term refers to a blueprint that defines the properties and behaviors that objects created from it will h...
- Which of the following best names the concept in which an OOP principle that bundles data and methods together...