Question

# A(n) ______ of inheritance is where one class is derived from a second class, which in turn is derived from a third class.

Solution

Verified
Step 1
1 of 3

A class $\textbf{chain}$, or sometimes called $\textbf{Class Hierarchy}$, is composed of a set of classes where $\textit{each class has at most single base class}$, i.e., there is no class that inherits two other (base) classes. For example, let's say we have class A and class B inherits class A, and there is another class C which inherits class B. Then the class hierarchy is C $\,\to\,$ B $\,\to\,$ A .

See the following code which explains the difference between Inheritance Chaining, and Multiple Inheritance.

## Recommended textbook solutions

#### Computer Organization and Design MIPS Edition: The Hardware/Software Interface

5th EditionISBN: 9780124077263 (5 more)David A. Patterson, John L. Hennessy
220 solutions

#### Starting Out with C++ from Control Structures to Objects

8th EditionISBN: 9780133769395 (10 more)Godfrey Muganda, Judy Walters, Tony Gaddis
1,294 solutions

#### Fundamentals of Database Systems

7th EditionISBN: 9780133970777 (1 more)Ramez Elmasri, Shamkant B. Navathe
687 solutions

#### Introduction to Algorithms

3rd EditionISBN: 9780262033848 (2 more)Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
726 solutions