Why is high cohesion important in software design?
High cohesion is important because it makes modules easier to understand, maintain, and reuse, leading to more modular and scalable software systems.
How does cohesion relate to software maintainability?
Cohesion relates to software maintainability by ensuring that related functionalities are grouped together, making the system easier to manage and modify without unintended side effects.
What is the difference between cohesion and coupling?
Cohesion refers to the degree of relatedness within a module, while coupling refers to the degree of interdependence between modules. High cohesion and low coupling are desirable for maintainable software design.