Cohesion is an indication of the relative functional strength of a module.
?Conventional view:
the “single-mindedness” of a module
?OO view:
?cohesion implies that a component or class encapsulates only attributes and operations that are closely related to one another and to the class or component itself
?Levels of cohesion
?Functional
?Layer
?Communicational
?Sequential
?Procedural
?Temporal
?utility
Coupling is an indication of the relative interdependence among modules.
Coupling depends on the interface complexity between modules, the point at which entry or reference is made to a module, and what data pass across the interface.
Conventional View : The degree to which a component is connected to other components and to the external world
OO view: a qualitative measure of the degree to which classes are connected to one another
Level of coupling
?Content
?Common
?Control
?Stamp
?Data
?Routine call
?Type use
?Inclusion or import
?External #