Extract Interface

From CSSEMediaWiki
Revision as of 21:49, 14 October 2009 by AlexGee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If multiple classes have sections of their public interface in common then extract the common elements into a interface which the classes will implement. Another reason to extract an interface is if multiple client classes are using the same subset of a class's interface. This can lower coupling.

Personal tools