Yes.  They key difference is that the abstraction boundary is the  
object, not the class.
In Java, another instance of the same class can access your "private"  
instance variables.
In Smalltalk, it cannot (unless reflection is used).

- on


On Oct 21, 2009, at 14:59, Gerben van de Wiel wrote:

> Thank you very much, if i understand it correctly then instance vars
> in SmallTalk are "kind of" protected members in languages like Java
> and C#?
>
> Regards,
> Gerben
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to