oop

Definition

Class Cohesion

Class cohesion is the degree of connection between the responsibilities of a class. It’s high when:

  1. variables are methods work well together
  2. and is well described by the name

Class cohesion should be high.