1.

The private member’s are made public to all the classes in inheritance.(a) True(b) FalseThe question was posed to me in an online quiz.This question is from Hybrid Inheritance in division Inheritance & its Types of Object Oriented Programming

Answer»

Correct answer is (b) False

To explain I WOULD SAY: The private member’s scope can’t be changed and those can never be accessed in other classes. Only the class CONTAINING private member’s can ACCESS its own members.



Discussion

No Comment Found

Related InterviewSolutions