Remove Parameter
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
If a method does not use a parameter in its body, then the parameter should simply be removed. | If a method does not use a parameter in its body, then the parameter should simply be removed. | ||
Latest revision as of 03:18, 25 November 2010
If a method does not use a parameter in its body, then the parameter should simply be removed.
Parameters imply data that is needed. If it is the case that some uses of the method need the parameter, you may need to make this method seperate, having a version with and without the parameter.
See Also: