+ 3

Can private members of the base class become protected members of the derived class in protected inheritance?

12th Feb 2017, 9:31 AM
Loise Muthoni
2 Réponses
+ 8
As answered vijay, it is not possible. But it is possible do the opposite: a protected member of the base class can become private in the derived class, using private type of inheritance.
23rd Apr 2017, 5:59 PM
Daniele Gaito
Daniele Gaito - avatar
+ 3
No , private member can't be access outside the class where it is defined.
13th Feb 2017, 2:14 AM
vijay
vijay - avatar