in reply to Re: Re: Make your classes use their own methods
in thread Make your classes use their own methods
If the attribute shall be observable from outside, the getter/setter for that attribute shall be public acessable.
I agree. I meant that far too often, public getter/setter methods are a sign of poor OO design: objects as datastructures rather than objects as behaviors/responsibilities and state.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Make your classes use their own methods
by pg (Canon) on Nov 24, 2003 at 05:00 UTC | |
by Anonymous Monk on Nov 24, 2003 at 05:09 UTC |