Pull Up Constructor Body

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

If a superclass has many subclasses with similar or identical constructors try to move the body of the work into the superclass and simply call super in the subclasses. This improves code reuse.

Personal tools