1.

Diamond problem includes ____________________ hybrid inheritance.(a) Hierarchical and Multiple(b) Hierarchical and Hierarchical(c) Multiple and Multilevel(d) Single, Hierarchical and MultipleThis question was posed to me in an interview.I need to ask this question from Hybrid Inheritance topic in division Inheritance & its Types of Object Oriented Programming

Answer» CORRECT ANSWER is (a) Hierarchical and Multiple

The explanation: The diamond PROBLEM arises when more than one classes are DERIVED from one CLASS and then those classes are used to derive single clas. Resulting in ambiguity of same functions from each class.


Discussion

No Comment Found

Related InterviewSolutions