Pull Up Field
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
|||
Line 1: | Line 1: | ||
Subclasses created through refactoring or developed independently may end up with some duplicate features, such as fields that are the same. If the fields are used in the same way, it may be moved to the superclass, removing the duplicate code in the subclasses to one single instance in the superclass. | Subclasses created through refactoring or developed independently may end up with some duplicate features, such as fields that are the same. If the fields are used in the same way, it may be moved to the superclass, removing the duplicate code in the subclasses to one single instance in the superclass. | ||
− | + | == See Also == | |
{{Refactoring}} | {{Refactoring}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 03:23, 25 November 2010
Subclasses created through refactoring or developed independently may end up with some duplicate features, such as fields that are the same. If the fields are used in the same way, it may be moved to the superclass, removing the duplicate code in the subclasses to one single instance in the superclass.
See Also