Alternative classes with different interfaces smell
From CSSEMediaWiki
(Difference between revisions)
JaninaVoigt (Talk | contribs) (New page: This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to rename the methods that do the same thing in a consistent...) |
m (category) |
||
Line 1: | Line 1: | ||
This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to rename the 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. | This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to rename the 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 == | ||
+ | * [[Code smells]] | ||
+ | |||
+ | [[Category:Code smells]] |
Revision as of 07:30, 1 August 2009
This smell occurs when two methods in different classes do the same thing but have a different method signature. You should try to rename the 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.