Difference Between Cohesion and Coupling | Cohesion vs Coupling

By Mohit Uniyal|Updated : May 2nd, 2022

Difference Between Cohesion and Coupling: Cohesion and coupling are methods of moduling. These two methods are used to create relationship with or within modules. The major difference between Cohesion and Coupling is that cohesion is used intra module and coupling is used inter module.

Cohesion and coupling are important aspects of software technology. Developers decide whether the program need high or low coupling/cohesion. Here fistly we will discuss what is cohesion and coupling thereafter we will discuss the difference between Cohesion and Coupling. 

Table of Content

What is Cohesion?

Cohesion is the concept used to indicate the relationship inside the module or within the module. It is also known as the intra-module cohesion because it is used intra-module. The cohesion can be divided into the following types:

  • Coincidental cohesion 
  • Logical cohesion 
  • Temporal cohesion 
  • Procedural cohesion 
  • Communicational cohesion 
  • Sequential cohesion 
  • Functional cohesion

What is the Coupling?

Coupling is also used to indicate the relationship between two or more modules. It is also known as inter-module coupling since it is used inter-module. There are the following types of coupling required in the program: 

  • Data coupling
  • Stamp coupling
  • Control coupling
  • Common coupling

Let us now discuss the difference between coupling and cohesion in the next session based on the varied parameters.

What is the Difference Between Cohesion and Coupling?

Although there are varied similarities between cohesion and coupling such as both are used for interconnecting two different parts in computer software. But there exist various differences between these two which are elaborated in the table provided below. 

Difference Between Cohesion and Coupling
CohesionCoupling
It is established between elements of the same module.It is established within two different modules.
Known as the intra-module concept.Known as the inter-module concept.
Preferable: High cohesionPreferable: low coupling
Tells about the relative functional strength of the module.Tells about the independence of two modules related to each other.
Inter-module bindingInter module binding
The best software is received by high cohesionThe best software is given when the loose coupling is used.

Comments

write a comment

FAQs

  • The significant difference between cohesion and coupling is that coupling is an inter-module concept, whereas cohesin is an intra-module concept. Both concepts are used differently in order to make the program better.

  • Cohesion vs Coupling is the comparison of the cohesion with coupling in software. This explains the difference between the two based on the usage by the Programmers in a computer program.

  • Cohesion is intra module concept used to indicate the relation between modules. It is used with high cohesion for the software. They are of various types which are mentioned below:

    • Communicational cohesion 
    • Sequential cohesion 
    • Functional cohesion
    • Coincidental cohesion 
    • Logical cohesion 
    • Temporal cohesion 
    • Procedural cohesion 
  • Coupling is the inter-modular concept and used to create a relationship between modular in a software. They are used to make the software effective and best. They are of the following types:

    • Data coupling
    • Stamp coupling
    • Control coupling
    • Common coupling
  • In the cohesion for best software, high cohesion is used whereas low coupling is preferred for the best software. The standard of the coupling decreases with the quality of the software required.

Follow us for latest updates