[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: query on private members
> > Is it a Bad Thing for one OzoneObject to directly alter a
> private member in
>
> What do you mean with directly ?
Without going via a method.
> > another OzoneObject of the same class (i.e. can this be rolled
> back)? How
> > about an arbitrary public member?
>
> In general it is not a question of being private or public, but a
> question wether of having the modification method marked as update
> or not. If you modify members in a read-only method they won't be
> stored !
As interfaces can't have private methods, this would seem to mean that the
only way data can be altered is by public methods...
Reason
http://www.exratio.com/