Content deleted Content added
→Low-Coupling / High-Cohesion pattern: It's not a pattern. Rewording 1st para. |
→Low-Coupling / High-Cohesion: rewriting |
||
Line 26:
== Low-Coupling / High-Cohesion ==
Low-
The concepts
=== Low Coupling ===
Coupling is increased between two classes A and B if:
*A has an attribute that refers to (is of type) B.
Line 38 ⟶ 40:
*A is a subclass of (or implements) B.
*A change in one class forces a ripple of changes in other classes.
Line 52 ⟶ 54:
*Operations do many varied activities, often using varied data.
*Difficult to understand.
*Difficult to maintain, because it is constantly affected by changes.
*Difficult to reuse a class because most
=== Related patterns ===
|