Nil or export coupling only
From CSSEMediaWiki
(Difference between revisions)
(New page: Riel's Heuristic #2.7 Classes should have only nil or export coupling with other classes. Classes should only depend on the public methods of another class or nothing at all. Other forms ...) |
|||
Line 4: | Line 4: | ||
Riel also states that class cohesion ensures that all elements off a class are related. | Riel also states that class cohesion ensures that all elements off a class are related. | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * [[Riel's heuristics]] |
Revision as of 04:03, 19 August 2008
Riel's Heuristic #2.7
Classes should have only nil or export coupling with other classes. Classes should only depend on the public methods of another class or nothing at all. Other forms of coupling give away implementation details of a class, which is bad for maintenance when implementations need to be changed.
Riel also states that class cohesion ensures that all elements off a class are related.