Extract Subclass
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
|||
Line 3: | Line 3: | ||
An alternative to this is [[Extract Class]], giving a choice between inheritance and delegation. | An alternative to this is [[Extract Class]], giving a choice between inheritance and delegation. | ||
− | + | == See Also == | |
* [[Replace Type Code with Subclasses]] | * [[Replace Type Code with Subclasses]] | ||
* [[Replace Type Code with State/Strategy]] | * [[Replace Type Code with State/Strategy]] | ||
{{Refactoring}} | {{Refactoring}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 03:22, 25 November 2010
When a class has features that you may only wish to use in some cases, it may need to be split into a class with one or more subclasses.
An alternative to this is Extract Class, giving a choice between inheritance and delegation.
See Also