Tags: interface design component
InterfaceSegregationPrinciple
_Many role specific interfaces are better than one general purpose interface_
Think of interfaces in terms of roles. If a class fulfills several roles or has several responsabilities then make it implement several interfaces rather than only one fat one.
This is an enabling technology of component design.
Last published: Wednesday 2nd November 2011
<<Previous Next>>