SOLID: Interface Segregation Principle
Get introduced to the Interface Segregation Principle.
Introduction
The Interface Segregation Principle (ISP) is a design principle that does not recommend having methods that an interface would not use and require. Therefore, it goes against having fat interfaces in classes and prefers having small interfaces with a group of methods, each serving a particular purpose.
The goal behind implementing the ISP is to have a precise code design that follows the correct abstraction guidelines and tends to be more flexible, which would help in making it ...
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.