1.

All the classes must have all the members declared private to implement multilevel inheritance.(a) True(b) FalseThe question was asked in an interview for internship.Origin of the question is Multilevel Inheritance topic in section Inheritance & its Types of Object Oriented Programming

Answer»

The correct OPTION is (b) False

The best I can explain: There is no mandatory RULE to make the MEMBERS private for multilevel INHERITANCE. Moreover, if all the classes have only the private members then there won’t be any member to GET inherited. Hence the working will be of no use.



Discussion

No Comment Found

Related InterviewSolutions