From: Roedy Green on
On Fri, 2 Jul 2010 02:14:15 -0700 (PDT), Vikram
<vikrampyati(a)gmail.com> wrote, quoted or indirectly quoted someone who
said :

>
>We are able to access the private variable i of another instance of A.
>Why should this be allowed?

Because privacy is really about authorship. Private means only the
author of this class should know about this variable or be able to
fiddle with it. Whether the variable is in this or some other object
is immaterial.
--
Roedy Green Canadian Mind Products
http://mindprod.com

There is no harm in being sometimes wrong especially if one is promptly found out.
~ John Maynard Keynes (born: 1883-06-05 died: 1946-04-21 at age: 62)