Home »
MCQs »
OOPs MCQs
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 {
... ... ... };
- Hierarchical inheritance
- Hybrid inheritance
- Multilevel inheritance
- 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.