Friday, January 07, 2005

Accessors: I forgot!

Another advantage of using accessors is that by asking for senders of the appropriate one you can instantly distinguish between reads and writes - something you have to do by hand if you have to check references to the instance variables.

No comments: