Lack of cohesion

LCO

Measure

-- degree of similarity between methods
  • LCO(x) =
where
  • partitions(M,I) = \{ J \subseteq I \ifsli{\n\hspace*{0.0cm}{} | methods(J) \cap methods(I \backsl J) = \0 \}

Viewpoint --

cohesiveness of methods within a class is desirable since it promotes the encapsulation of objects
slide: Lack of cohesion