Difference Between Cohesion and Coupling

ComputersSoftware & CodingProgramming

In this post, we will understand the difference between cohesion and coupling −

Cohesion

  • It is an intra module concept.

  • It represents relationships within the module.

  • Increased cohesion is considered to be good for the software.

  • It represents the functional strength of the modules.

  • When modules are highly cohesive, a high quality software is built.

  • In cohesion, module focuses on the single thing.

Coupling

  • It is an inter module concept.

  • It helps represent the relationships between the modules.

  • Increased coupling has to be avoided in software.

  • It represents the independence among the modules.

  • When the modules are loosely coupled, it results in a high quality software.

  • The modules would be connected to each other.

raja
Published on 24-Apr-2021 07:47:19
Advertisements