1 |
Cohesion is the indication of the relationship within module. |
Coupling is the indication of the relationships between modules |
2 |
Cohesion shows the module’s relative functional strength. |
Coupling shows the relative independence among the modules. |
3 |
Cohesion is Intra – Module Concept. |
Coupling is Inter -Module Concept. |
4 |
While designing you should strive for high cohesion i.e. a cohesive component/ module focus on a single task |
While designing you should strive for low coupling i.e. dependency between modules should be less. |
5 |
Cohesion is the kind of natural extension of data hiding for example, class having all members visible with a package having default visibility. |
Making private fields, private methods and non-public classes provides loose coupling. |