Extract Hierarchy

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m
m (Reverted edits by Ebybymic (Talk); changed back to last version by Aidan Bebbington)
 
(One intermediate revision by one user not shown)

Latest revision as of 03:21, 25 November 2010

Straight from Martin Fowler 1999:

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

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


Similar

Replace Conditional with Polymorphism

Personal tools