Alternative classes with different interfaces smell

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward)
 
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://ekipebu.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://ekipebu.co.cc CLICK HERE]=
 
----
 
</div>
 
 
This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to [[Rename Method]]s that do the same thing in a consistent way. However, often there is a deeper problem where two classes are doing something very similar. You could try to [[Move Method]]s around or extract the common behavior into a common superclass.
 
This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to [[Rename Method]]s that do the same thing in a consistent way. However, often there is a deeper problem where two classes are doing something very similar. You could try to [[Move Method]]s around or extract the common behavior into a common superclass.
  

Latest revision as of 03:18, 25 November 2010

This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to Rename Methods that do the same thing in a consistent way. However, often there is a deeper problem where two classes are doing something very similar. You could try to Move Methods around or extract the common behavior into a common superclass.


See also


Personal tools