Open In App

Differences between Coupling and Cohesion – Software Engineering

Last Updated : 02 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

What is Cohesion

Cohesion is the indication of the relationship within the module. It is the concept of intro-module. Cohesion has many types but usually, high cohesion is good for software. 

Cohesion-(1)

Cohesion

What is Coupling

Coupling is also the indication of the relationships between modules. It is the concept of the Inter-module. The coupling has also many types but typically, the low coupling is good for software. 

coupling-(1)

Coupling

Differences between Coupling and Cohesion

The differences between cohesion and coupling are given below:

Aspect

Cohesion

Coupling

Definition

Cohesion is the concept of intro-module.

Coupling is the concept of inter-module.

Purpose

Cohesion represents the relationship within a module.

Coupling represents the relationships between modules.

Quality

Increasing cohesion is good for software.

Increasing coupling is avoided for software.

Focus

Cohesion represents the functional strength of modules.

Coupling represents the independence among modules.

Relationship

Highly cohesive gives the best software.

Whereas loosely coupling gives the best software.

Example

In cohesion, the module focuses on a single thing. In coupling, modules are connected to the other modules.

Creation

Cohesion is created between the same module. Coupling is created between two different modules.

Types

There are Six types of Cohesion

  1. Functional Cohesion.
  2. Procedural Cohesion. 
  3. Temporal Cohesion.
  4. Sequential Cohesion.
  5. Layer Cohesion.
  6. Communication Cohesion.

There are Six types of Cohesion

  1. Functional Cohesion.
  2. Procedural Cohesion.
  3. Temporal Cohesion.
  4. Sequential Cohesion.
  5. Layer Cohesion.
  6. Communication Cohesion.

Frequently Asked Questions (FAQs) on Coupling vs Cohesion

1. What is the difference between coupling and cohesion?

The main Difference between Coupling and Cohesion is Cohesion is the concept of intro-module while Coupling is the concept of inter-module.

2. What is low coupling and high cohesion?

Low coupling means the different parts of the software don’t rely too much on each other, which makes it safer to make changes without causing unexpected problems. High cohesion means each part of the software has a clear purpose and sticks to it, making the code easier to work with and reuse.

3. What is the difference between high and low coupling?

High coupling means that different parts of a program rely heavily on each other. If one part changes, it’s likely to affect many other parts while Low coupling, on the other hand, means that different parts of a program are more independent of each other. Changes in one part are less likely to affect other parts.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads