1.

Which type of inheritance cannot involve private inheritance?(a) Single level(b) Multiple(c) Hybrid(d) All types can have private inheritanceThe question was posed to me in class test.Asked question is from Types of Inheritance topic in section Inheritance & its Types of Object Oriented Programming

Answer»

Correct CHOICE is (d) All types can have private inheritance

The best EXPLANATION: This is a COMMON TYPE of inheritance where the PROTECTED and public members of parent class become private members in child class. There is no type which doesn’t support private inheritance.



Discussion

No Comment Found

Related InterviewSolutions