InterviewSolution
Saved Bookmarks
| 1. |
Which type of inheritance results in the diamond problem?(a) Single level(b) Hybrid(c) Hierarchical(d) MultilevelThis question was posed to me during an interview.This intriguing question comes from Types of Inheritance topic in portion Inheritance & its Types of Object Oriented Programming |
|
Answer» CORRECT answer is (b) Hybrid The best I can explain: In DIAMOND problem, hierarchical inheritance is used FIRST, where TWO different classes inherit the same class and then in TURN a 4th class inherits the two classes which had inherited the first class. Using more than one type of inheritance here, it is known as hybrid inheritance. |
|