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

Back to All Code Smells