Album Cover

Code Smells Java

Close Preview
Alternative Classes With Different Interfaces Image
This subtle smell results when differences in the interfaces
of similar classes leads to duplicated code.
If similar classes have differences in their interfaces, clients will differ in how they interact with each of the classes.
If the classes could share a common interface, clients could work with either class uniformly, thereby removing duplicated client code.
| Tweet...
Page rating: | Rate this Page