Coupling, Cohesion and the Law of Demeter

Grady Booch in “Object Oriented Analysis and Design”: “The idea of cohesion also comes from structured design. Simply stated, cohesion measures the degree of connectivity among the elements of a single module (and for object-oriented design, a single class or object). The least desirable form of cohesion is coincidental cohesion, in which entirely unrelated abstractions … Read more