PRIVATE | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

PRIVATE

so does this mean that private variables in a given class cannot be accessed by an object of a derived class whose base class is the said private variable?

18th May 2020, 9:31 AM
Idundun Sydney
Idundun Sydney - avatar
1 Réponse
+ 1
Private members of a class is not accessible to anyone outside the class except member functions of that class and friend functions of that class.
18th May 2020, 9:39 AM
Arsenic
Arsenic - avatar