“Coupling should be low” – Justify. in ooad
Answers
Answered by
2
Coupling
Explanation:
- Coupling is that the degree of interdependence between software modules; a estimate of how closely connected two routines or modules are, the strength of the relationships between modules
- Low coupling refers to a relationship during which one module interacts with another module through an easy and stable interface and doesn't got to worry with the opposite module's internal implementation (see Information Hiding).
- Low coupling imply that class should have minimum possible dependencies. Also, dependencies that has got to exist should be weak dependencies - prefer dependency on interface instead of dependency on concrete class, or prefer composition over inheritance
- Low coupling are often achieved by having less classes linking to at least one another. the simplest way to reduce coupling is by providing an API (interface).
Similar questions