Replace Inheritance with Delegation

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by Joey Scarr)
 
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://ewefobyme.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
----
 
=[http://ewefobyme.co.cc CLICK HERE]=
 
----
 
</div>
 
 
Straight from [[Martin Fowler 1999]]:
 
Straight from [[Martin Fowler 1999]]:
  
&quot;A subclass uses only part of a superclasses interface or does not want to inherit data.
+
"A subclass uses only part of a superclasses interface or does not want to inherit data.
  
''Create a field for the superclass, adjust methods to delegate to the super class, and remove the subclassing.''&quot;
+
''Create a field for the superclass, adjust methods to delegate to the super class, and remove the subclassing.''"
  
 
==See Also==
 
==See Also==

Latest revision as of 03:21, 25 November 2010

Straight from Martin Fowler 1999:

"A subclass uses only part of a superclasses interface or does not want to inherit data.

Create a field for the superclass, adjust methods to delegate to the super class, and remove the subclassing."

See Also

Personal tools