Remove Setting Method
From CSSEMediaWiki
Revision as of 11:15, 14 October 2009 by Brett Ward (Talk | contribs)
Providing a setting method implies that a field may be changed. If this is not the case, then there should be no method to allow it to be set.
The field should also be final. This will make your intentions clear.
This problem may occur if you use Getters and setters to ensure indirect variable access.
See Also