What is the difference between Cohesion and Coupling?
- Cohesion: Degree to which elements of a module belong together. High cohesion
means focused, well-defined responsibilities.
- Coupling: Degree of interdependence between modules. Low coupling means
modules are independent and changes in one don’t affect others.