Principle of Interface Segregation in Object Oriented Design (SOLID)

Author
By Darío Rivera
Posted On in SOLID

In a previous post we saw an introduction to SOLID Principles as a purely theoretical way. Today we will see everything about the fourth SOLID principle on the list, The Interface Segregation Principle. Let's start by giving a definition of this principle.

Definition

This principle states that a client should not be forced to implement an interface that it does not use. Stated alternatively, many client-specific interfaces are better than a general-purpose interface. If a method or function receives a dependency that implements other methods that are not of interest, a segregation must be performed and a specific interface created.


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.