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@ifi.uio.no

Morgedalsvn. 5A         http://heim.ifi.uio.no/~trygver

N-0378 Oslo               Tel: (+47) 22 49 57 27

Norway