1.

Which among the following best defines the hybrid inheritance?(a) Combination of two or more inheritance types(b) Combination of same type of inheritance(c) Inheritance of more than 7 classes(d) Inheritance involving all the types of inheritanceThis question was addressed to me in a job interview.My question is from Hybrid Inheritance in chapter Inheritance & its Types of Object Oriented Programming

Answer»

Right ANSWER is (a) Combination of two or more inheritance types

Explanation: When more than one type of inheritance are used together, it RESULTS in new type of inheritance which is in general known as HYBRID inheritance. This MAY of may not have BETTER capabilities.



Discussion

No Comment Found

Related InterviewSolutions