1.

Multilevel inheritance allows _________________ in the program.(a) Only 7 levels of inheritance(b) At least 7 levels of inheritance(c) At most 16 levels of inheritance(d) As many levels of inheritance as requiredI have been asked this question in quiz.Question is taken from Multilevel Inheritance topic in division Inheritance & its Types of Object Oriented Programming

Answer»

Right choice is (d) As many LEVELS of inheritance as required

Easy EXPLANATION - The multilevel inheritance allows any number of levels of inheritance. This is the maximum flexibility feature to MAKE the members available to all the new classes and to add their own functionalities. The code REUSABILITY is USED too.



Discussion

No Comment Found

Related InterviewSolutions