Data Cohesion - a module internally defines a set of data values
and exports (makes visible) a set of methods to manipulate that
data - basis of good ADT
Estimating degree of cohesion by writing a statement of purpose
- Sentence containing a comma or more than 1 verb are probably
performing more than one function - sequential or communication
cohesion is probable.
- If the sentence contains words like "first", "next", "after", etc.
then sequential or temporal cohesion is probable.
- If the predicate does not contain a specific, single object; then
logical cohesion is probable.
- If sentence contains words like "initialize" or "clean-up", then
temporal cohesion is probable.