Types of coupling and cohesion


Types of Module coupling and cohesion

Difference between Module coupling and cohesion

Modular and structure design (Part-1)

Types of modules coupling: -

1) Data coupling: -

The dependency between the modules is based on the fact and data that they communicate by passing only data the modules is said to be data coupling.


2) Stamp coupling: -

Stamp data coupling means the passes of complete data’s structure from one module to another module and it involves tramp data.

3) Control coupling: -

In control coupling the communication of modules is passing through control information. It can be bad as well as good in case of bad control coupling if parameters indicate complete different behavior and in case of good if parameters allow factoring and reuse functionality.

4) External coupling: -

When one module depends on other modules it is said to be External coupling.

5)  Common coupling: -

If two modules share information through some global data items the both modules are said to be common coupling. It has a disadvantage like difficulty in reusing modules and reduces maintainability etc.

6) Content coupling: -

Content coupling is the worst form of coupling and it should be avoided. In content coupling one module can modify the data of another module and control flow is passed from one module to another module.

Types of modules cohesion: -

1) Functional cohesion: -

When the different elements of the module cooperate to achieve a single function then the functional cohesion is exist.

2) Sequential Cohesion: -

If the element of a module forms the components of the sequence where the output from one component of the sequence is input to the next then the modules is said to be Sequential cohesion.

3) Communication cohesion: -

All the tasks of the module refer to or update the same data’s structure then the module is said to have communication cohesion.

4) Procedural cohesion: -

If the set of purpose of the module are all parts of a procedure in which particular sequence of steps has to be carried out for achieving goal, then the module is said to be a procedural cohesion.

5) Temporal cohesion: -

A module is said to be temporal cohesion when it includes functions that are associated by the fact that all the methods must be executed in the same time.

6) Logical cohesion: -

Logical cohesion means that if all the elements of the module perform a similar operation.

7) Coincidental cohesion: -

If a module performs a set of tasks that are associated with each other very loosely then the module is said to be coincidental cohesion.

Difference between coupling and cohesion: -



Coupling is also known as Inter module building.

Cohesion is also known as Inter module building.

Relationship between modules is shown by coupling.

 The relationship within the module is shown by the cohesion.

It also shows the relative independence between the modules.

It also shows the relative functional strength of modules.

You should aim for low coupling i.e. dependency among modules must be less.

You should aim for high cohesion.

Modules are linked to the other modules.

The module focuses on a single thing.


Modular and structure design (Part-1)

For more information whats_app:- 8873466244

For more information contact us: - Click me

Or follow our FACEBOOK page @diploma.1234

(Hello everyone thank you for supporting my blog and all of you give me lots of love and bless from your precious comment. I hope my upcoming notes and data will help all of you in upcoming examination. once again thank you to all of you keep supporting me.)


                                                        MOHIT KUMAR



Please do not enter any spam link in the comment box and use English and Hindi language for comment.

Latest Update

Key Components of XML

Popular Posts