Cohesion:
Cohesion is a measure of the functional strength of a module. It is defined as the degree to which the elements of a particular module are functionally related. Cohesion of a module represents how tightly bound the internal elements of the module are to one another.
The measure of how strongly the elements are related functionally inside a module is called cohesion. Cohesion is a measure of the degree to which the elements of the module are functionally related. It is a measure that defines the degree of intra-dependability within an element of a module. A good software design will have high cohesion.Â
Â
Coupling:
Coupling is the measure of the degree of interdependence between the modules. Coupling between modules is the strength of interconnections between modules and a measure of interdependence among modules. Two modules with high coupling are strongly interconnected and thus dependent on each other. Two modules with low coupling are not dependent on one another.
Coupling is defined as the degree to which the two modules are dependent on each other. It measures the strength of relationships between modules. Coupling between any two modules is identified from the number and types of resources that the modules share with other modules.Â
Highly coupled modules are joined by strong interconnections, while loosely coupled modules have weak interconnections. Independent modules have no interconnections. Â Coupling is measured by the number of relations between the modules. A good software design will have low coupling.Â