Introduce Local Extension
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
|||
Line 3: | Line 3: | ||
A new class should be created, containing the extra methods needed. This "extension" class should be made into a subclass or wrapper of the original server class. | A new class should be created, containing the extra methods needed. This "extension" class should be made into a subclass or wrapper of the original server class. | ||
− | + | == See Also == | |
{{Refactoring}} | {{Refactoring}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 03:22, 25 November 2010
Similar to Introduce Foreign Method, this refactoring is when you have several additional methods that need to be added to a server class, but the source code cannot be altered.
A new class should be created, containing the extra methods needed. This "extension" class should be made into a subclass or wrapper of the original server class.
See Also