In this entry, I’ll be going to discuss what interfaces are and why is learning to code to the interface a stepping stone to implementing design patterns. By definition an Interface is a point where two systems, subjects, organizations meet and interact.
In programming, especially in OOP, an interface is a way to define the structure of how the class should be implemented and used.
Let’s have a quick and simple example of an interface just to show you how they looks like.
These patterns guide us how to structure our code and how it should behave.