Alternative Classes with Different Interfaces
When you have two or more classes which in theory should be substitutable for one another, but in practice they have slightly different interfaces. You might like to unify the interfaces so the protocols match.
Sources
- This smell is included Martin Fowler's book "Refactoring", 2nd Edition
Back to All Code Smells