Remove Setting Method
From CSSEMediaWiki
(Difference between revisions)
Brett Ward (Talk | contribs)
(New page: 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 wil...)
Newer edit →
(New page: 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 wil...)
Newer edit →
Revision as of 11:15, 14 October 2009
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