S
Siam
Hi all,
I read somewhere that private members of some instance of class A are
accessible from another instance of the same class. In other words,
access to private members is done 'on a class by class basis, not on an
instance by instance basis'. I couldn't quite believe it, and tried it
out for myself, and was shocked to see it was true... What is the
reasoning behind this? Why should one Person object be able to see
another Person object's private parts?
Cheers,
Siam
I read somewhere that private members of some instance of class A are
accessible from another instance of the same class. In other words,
access to private members is done 'on a class by class basis, not on an
instance by instance basis'. I couldn't quite believe it, and tried it
out for myself, and was shocked to see it was true... What is the
reasoning behind this? Why should one Person object be able to see
another Person object's private parts?
Cheers,
Siam