Content deleted Content added
→High Cohesion: start new paragraph |
→High Cohesion: copy edit |
||
Line 51:
Cohesion is a measure of how strongly related and focused the responsibilities of a single class are.
Cohesion is decreased
*The responsibilities (operations) of a class have little in common.
*Operations do many varied activities, often using varied data.
Disadvantages of low cohesion (or "weak cohesion") are:
*Difficult to understand.
|