1.

How many basic types of inheritance are provided as OOP feature?(a) 4(b) 3(c) 2(d) 1The question was posed to me in an online quiz.The doubt is from Inheritance topic in chapter Inheritance & its Types of Object Oriented Programming

Answer»

Right choice is (a) 4

The explanation: There are BASICALLY 4 types of inheritance provided in OOP, namely, single level, MULTILEVEL, multiple and HIERARCHICAL inheritance. We can add ONE more type as HYBRID inheritance but that is actually the combination any types of inheritance from the 4 basic ones.



Discussion

No Comment Found

Related InterviewSolutions