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...) |
|||
Line 5: | Line 5: | ||
This problem may occur if you use [[Getters and setters]] to ensure indirect variable access. | This problem may occur if you use [[Getters and setters]] to ensure indirect variable access. | ||
− | == See Also == | + | >== See Also == |
{{Refactoring}} | {{Refactoring}} | ||
+ | |||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://erotelokehu.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]= | ||
+ | ---- | ||
+ | =[http://erotelokehu.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> |
Revision as of 03:21, 18 November 2010
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 ==