Home »
MCQs »
OOPs MCQs
Watch the diagram closely and identify the type of inheritance?
95. Watch the diagram closely and identify the type of inheritance?
- Hierarchical inheritance
- Hybrid inheritance
- Multilevel inheritance
- Multiple inheritances
Answer: B) Hybrid inheritance
Explanation:
Hybrid inheritance is the combination of multiple and multilevel inheritances so therefore in the given diagram, lecturer, department, the student refers as multilevel inheritance and marks and students refer as multiple inheritances.