Skip to content

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.

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

More Object-Oriented Programming (OOP) MCQs