- Nothing can beat experience

Why Using Interface

Using interfaces adds flexibility and power to your design. It solves the hard equation of how to make classes cohesive and loosely coupled. By creating interfaces, classes don’t need to know each other anymore. Interfaces define the services that will be provided by the class.

This applies the Dependency Inversion Principle.

You can see the following video for more information.

For more information about the Dependency Inversion Principle, visit the following links:

M. Radwan

Trending Tags