java - What is the reasoning behind the Interface Segregation Principle? -


the interface segregation principle (isp) says many client specific interfaces better 1 general purpose interface. why important?

isp states that:

clients should not forced depend on methods not use.

isp relates important characteristics - cohesion , coupling.
ideally components must highly tailored. improves code robustness , maintainability.

enforcing isp gives following bonuses:

  • high cohesion - better understandability, robustness
  • low coupling - better maintainability, high resistance changes

if want learn more software design principles, copy of agile software development, principles, patterns, , practices book.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -