
142 SOF T WARE ENGINEERING AND TESTING
set of print functions generating different output reports are arranged into a
single module.
FIGURE 5.23 Logical Cohesion Similar Functions
7. Coincidental Cohesion. A module is said to have coincidental cohesion if it
performs a set of tasks that relate to each other very loosely. In this case, the
module contains a random collection of functions. It means that the functions
have been put in the module out of pure coincidence without any thought or
design. It is the worst type of cohesion.
FIGURE 5.24 Coincidental Cohesion Parts Unrelated
FIGURE 5.25 Cohesion
5.4.3 Relationship Between Coupling and Cohesion ...