Move Method

From CSSEMediaWiki
Revision as of 01:19, 28 July 2009 by AlexGee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If a method is called more often by a class other then the one it is defined in move it into the class that calls it most often. The method can then be replaced with a delegate call in the original class. Obvious exclusions from this rule are getter, setters and methods that primarily manipulate the object state.

See Also

Personal tools