Extract Hierarchy

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by Aidan Bebbington)
 
Line 6: Line 6:
  
  
>==Similar==
+
==Similar==
  
 
[[Replace Conditional with Polymorphism]]
 
[[Replace Conditional with Polymorphism]]
 
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://yxakowu.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://yxakowu.co.cc CLICK HERE]=
 
----
 
</div>
 

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