The syntax is given below shows which type of inheritance?

96. The syntax is given below shows which type of inheritance?

18.	class A { 
... .. ... }; 
class B: public A { 
... .. ... }; 
class C: public B { 
... ... ... };
  1. Hierarchical inheritance
  2. Hybrid inheritance
  3. Multilevel inheritance
  4. Multiple inheritances

Answer: C) Multilevel inheritance

Explanation:

In the given syntax, class B is derived from the base class A and class C is derived from the derived class B.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.