What are the advantages of using interfaces

The following are the advantages of programming against interfaces over programming against concrete classes.
1. Interfaces allow us to develop loosely coupled systems. 
2. Interfaces are very useful for Dependency Injection.
3. Interfaces make unit testing and mocking easier.

0 Comments