[squeak-dev] Re: Instance variable access in superclasses.
Trygve Reenskaug
trygver at ifi.uio.no
Wed Nov 26 07:23:33 UTC 2008
On 26.11.2008 01:57, Igor Stasenko wrote:
> I like the idea of hiding the state/storage specific details from eyes
> of subclasses.
> It makes irrelevant, in what format or where particular object holds its state.
> As long as you providing messages to access it, it could be anything.
>
>
This "hiding" comes at a cost. Object state can only be accessed from
within the object itself. Accessor methods are public, they can be
accessed from anywhere.
--Trygve
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://heim.ifi.uio.no/~trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081126/805dfbfa/attachment.htm
More information about the Squeak-dev
mailing list
|