Move common factors up the hierarchy

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by AlexGee)
 
Line 1: Line 1:
----
 
<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://ejahibuko.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://ejahibuko.co.cc CLICK HERE]=
 
----
 
</div>
 
 
:''Factor the commonality of data, behavior, and/or interface as high as possible in the inheritance hierarchy..'' --Riel's Heuristic , [[Arthur Riel 1996]]
 
:''Factor the commonality of data, behavior, and/or interface as high as possible in the inheritance hierarchy..'' --Riel's Heuristic , [[Arthur Riel 1996]]
  

Latest revision as of 03:17, 25 November 2010

Factor the commonality of data, behavior, and/or interface as high as possible in the inheritance hierarchy.. --Riel's Heuristic , Arthur Riel 1996

Any behavior that is shared between all subclasses can logically be promoted to their superclass. If you find yourself moving factors up the hierarchy it may be worth the time to review your design and consider why this inheritance was not spotted at first.


See also

Personal tools