COHESION AND COUPLING material
5.3 COHESION AND COUPLING ● We have so far discussed that effective problem decomposition is an important characteristic of a good design. ● Good module decomposition is indicated through high cohesion of the individual modules and low coupling of the modules with each other. ● Cohesion is a measure of the functional strength of a module, whereas the coupling between two modules is a measure of the degree of interaction (or interdependence) between the two modules. ● Coupling: Intuitively, we can think of coupling as follows. ● Two modules are said to be highly coupled, if either of the following two situations arise: ● If the function calls between two modules involve passing large chunks of shared data, the modules are tightly coupled ● ...