You are on page 1of 3

ASSIGNMENT:1

Submitted By : Waleed Iqbal (11855)

Submitted To : Mam Javeria Kanwal

Program : BS-SE (7th) Afternoon

Course : Software Re-Engineering

Submission date : October 25th, 2021

DEPARTMENT OF SOFTWARE ENGINEERING


What is coupling cohesion?
" Coupling " describes the relationships between modules, and " cohesion " describes the
relationships within them. ... This means that in a good design, the elements within a module
(or class) should have internal cohesion.

example?
High cohesion within modules and low coupling between modules are often regarded as
related to high quality in OO programming languages. For example, the code inside each Java
class must have high internal cohesion, but be as loosely coupled as possible to the code in
other Java classes.

Following are the different types of coupling:


 Rigid Coupling.
 Sleeve or muff coupling.
 Clamp or split-muff or compression coupling, and.
 Flange coupling.
 Flexible coupling.
 Bushed pin-type coupling,
 Universal coupling, and.
 Oldham coupling.

Types of Cohesion in Software Engineering


 Functional Cohesion. The execution of the task related to the problem is the only
concern from all the elements inside the module. ...
 Sequential Cohesion. ...
 Communicational Cohesion. ...
 Procedural Cohesion. ...
 Temporal Cohesion. ...
 Logical Cohesion. ...
 Coincidental Cohesion.
Difference between cohesion and coupling

Cohesion Coupling
Cohesion is the concept of intra module. Coupling is the concept of inter module.
Cohesion represents the relationship Coupling represents the relationships
within module. between modules.
Increasing in cohesion is good for Increasing in coupling is avoided for
software. software.
Cohesion represents the functional Coupling represents the independence
strength of modules. among modules.
Where as loosely coupling gives the best
Highly cohesive gives the best software.
software.
In coupling, modules are connected to the
In cohesion, module focuses on the single
other modules.
thing.

Which is better cohesion and coupling and why?


Coupling shows the relative independence between the modules. Cohesion shows the module's
relative functional strength. While creating, you should aim for low coupling, i.e., dependency
among modules should be less.

You might also like