Design Patterns · Junior · Question 46 of 75
What does "high cohesion and low coupling" mean?
- ✓Correct answer: One task inside a module, and modules depend on each other only loosely
- 2Modules should call each other as often and as directly as possible
- 3All related code should be kept in one big module
Explanation
High cohesion means a module's parts work toward a common goal. Low coupling means modules communicate through narrow interfaces and don't know each other's details. Then changes stay local and don't ripple across the project.