Skip to content

Object-Oriented Programming (OOP)

What term describes the following? a design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance.

Difficulty: Hard

About this MCQ

This Hard Object-Oriented Programming (OOP) MCQ checks one syllabus fact.

The question is: “What term describes the following? a design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance.”

The accepted answer is C. Composition over inheritance. Composition over inheritance is the fact required by What term describes the following a design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance option C Option A Destructor does not match the stem it is a near-miss used to catch incomplete recall of Composition over inheritance Option B Instance variable does not match the stem it is a near-miss used to catch incomplete recall of Composition over inheritance Remaining alternatives Super keyword fall outside the same rule and should be eliminated once Composition over 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.

Correct answer

C. Composition over inheritance

Explanation

Composition over inheritance is the fact required by What term describes the following a design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance option C Option A Destructor does not match the stem it is a near-miss used to catch incomplete recall of Composition over inheritance Option B Instance variable does not match the stem it is a near-miss used to catch incomplete recall of Composition over inheritance Remaining alternatives Super keyword fall outside the same rule and should be eliminated once Composition over 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 d...

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