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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners