- Summary
- Clients should not be forced to depend upon interfaces that they don't use.
- Clients should not be forced to implement interfaces they don't use
- Instead of one fat interface many small interfaces are preferred based on groups of methods, each one serving one submodule.
- If the design is already done fat interfaces can be segregated using the Adapter pattern.
- If we are going to apply it more than is necessary it will result a code containing a lot of interfaces so due care need to be given during design.
- This bring you closure to ‘Single responsibility principle.”
- Applicability
- Interface Design
- References
- http://www.oodesign.com/interface-segregation-principle.html
|
|