Extract Hierarchy

From CSSEMediaWiki
Revision as of 05:49, 21 September 2008 by Jason Clutterbuck (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Straight from Martin Fowler 2003:

"You have a class that is doing too much work, at least in part through many conditional statements.

Create s hierarchy of classes in which each subclass represents a special case."


See Also

Replace Conditional with Polymorphism

Personal tools