1.

Which members can’t be accessed in derived class in multiple inheritance?(a) Private members of base(b) Public members of base(c) Protected members of base(d) All the members of baseI got this question in final exam.This intriguing question originated from Multiple Inheritance topic in chapter Inheritance & its Types of Object Oriented Programming

Answer»

The correct answer is (a) Private MEMBERS of base

The best I can explain: The private member’s are AVAILABLE for only the class containing those members. DERIVED classes will have ACCESS to protected and public members only.



Discussion

No Comment Found

Related InterviewSolutions