Understanding Cohesion and Coupling in Software Design

What is Cohesion?

Cohesion indicates the relationships within a module. It reflects the module’s relative functional strength. Essentially, cohesion is the degree to which a component or module focuses on a single task.

Best Practices for Cohesion

When designing software, aim for high cohesion. A highly cohesive module concentrates on a single task with minimal interaction with other system modules. Cohesion naturally extends data hiding. For instance, a class with all members visible within a package

Read More