Professional Documents
Culture Documents
Assignment:1: Department of Software Engineering
Assignment:1: Department of Software Engineering
Assignment:1: Department of Software Engineering
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.
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.