Hide Method
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
|||
Line 3: | Line 3: | ||
[[Martin Fowler]] recommends using a tool or using manual checks to see if methods can be made private. | [[Martin Fowler]] recommends using a tool or using manual checks to see if methods can be made private. | ||
− | + | == See Also: == | |
{{Refactoring}} | {{Refactoring}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 03:22, 25 November 2010
This refactoring is simply making a method private if it is only used within the class that contains it, and thus no other class needs access to it.
Martin Fowler recommends using a tool or using manual checks to see if methods can be made private.
See Also: