Move Method

From CSSEMediaWiki
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