出典:Wiktionary
interface segregation principle
出典:Wikipedia
出典:『Wikipedia』 (2011/04/01 05:21 UTC 版)
The interface-segregation principle is one of the five SOLID principles of Object-Oriented Design. The ISP is similar to the High Cohesion Principle of GRASP. It is a software development principle used for clean development and is intended to help developers avoid making their software impossible to change. If followed, the ISP will help a system stay decoupled and thus easier to refactor, change, and redeploy. The ISP says that once an interface has become too 'fat' it needs to be split into smaller and more specific interfaces so that any clients of the interface will only know about the methods that pertain to them. In a nutshell, no client should be forced to depend on methods it does not use.