I basically introduce an interface for five different reasons:
- I want to mock an object for a unit test
- a client only needs to depend on a small subset of the operations of a class (and for some reason, I can't/won't break down the class into smaller ones) (Interface Segregation Principle)
- to invert the dependency between two modules (Dependency Inversion Principle)
- to use polymorphism with classes that aren't related by a common superclass
- I need to publish an API to a third party