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.
In reply to Re: Re: Re: Make your classes use their own methods
by Anonymous Monk
in thread Make your classes use their own methods
by petdance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |