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 | |
Cohesion | Coupling |
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 cohesion | Preferable: low coupling |
Tells about the relative functional strength of the module. | Tells about the independence of two modules related to each other. |
Inter-module binding | Inter module binding |
The best software is received by high cohesion | The best software is given when the loose coupling is used. |
Comments
write a comment