Extract Interface
From CSSEMediaWiki
(Difference between revisions)
(New page: 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 inter...) |
m |
||
Line 1: | Line 1: | ||
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. | 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. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | {{Refactoring}} |
Latest revision as of 22:20, 14 October 2009
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.