×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

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.