[Tutor] designing POOP

bhaaluu bhaaluu at gmail.com
Mon Feb 11 13:29:07 CET 2008

On Feb 11, 2008 3:49 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> I think we are in general agreement, albeit with different levels of
> trust/toleration of the technique. Direct access is preferred to
> getter/setter methods but is in turn less desirable that higher
> level methods where they exist. The only contention seems to be
> whether a values() type mutilple-return method is worth anything over
> direct access. My personal taste is that if I need the entire
> "official"
> state of an object I'd like a method to give it me in one piece, but
> others obviously may feel differently.
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.freenetpages.co.uk/hp/alan.gauld

States, getters-setters, direct access.......
I'm still in toilet-training here/ 8^D
Can you provide some simple examples that
illustrate exactly what and why there is any
contention at all?

b h a a l u u at g m a i l dot c o m
"You assist an evil system most effectively by obeying its
orders and decrees. An evil system never deserves such
allegiance.  Allegiance to it means partaking of the evil.
A good person will resist an evil system with his or her
whole soul." [Mahatma Gandhi]

More information about the Tutor mailing list