Which of the following is NOT a recognized form of inheritance in C++ class hierarchies? Select the option that does not name a standard inheritance pattern.

Difficulty: Easy

Correct Answer: Distributive

Explanation:


Introduction:
Inheritance patterns describe how classes derive from one another. Knowing the standard names helps you quickly understand class diagrams and codebases. This question asks you to identify the odd one out—something that is not a standard inheritance pattern name in C++.


Given Data / Assumptions:

  • Common patterns include single, multiple, multilevel, and hierarchical inheritance.
  • We consider terminology from typical C++ texts.


Concept / Approach:
Multiple inheritance allows a class to derive from more than one base. Multilevel inheritance involves a chain (A → B → C). Hierarchical inheritance means one base with many derived classes. “Distributive” is not a standard term in C++ inheritance taxonomy.


Step-by-Step Solution:
1) Recognize the three standard names among the choices.2) Compare each to known definitions in OOP literature.3) Identify that “Distributive” does not refer to any C++ inheritance form.4) Select “Distributive”.


Verification / Alternative check:
Survey standard references; you will not find “distributive inheritance” as a defined pattern in mainstream C++ texts.


Why Other Options Are Wrong:
Multiple: valid and supported.Multilevel: valid; involves grandparent-parent-child chains.Hierarchical: valid; one base, several derived types.


Common Pitfalls:
Confusing hierarchical with hybrid (a combination of multiple and multilevel). The term “hybrid inheritance” is also seen, but “distributive” is not.


Final Answer:
Distributive

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion