Lack of Cohesion Of Methods 2 (LCOM2)

Description:

Counts the percentage of methods that do not access a specific attribute, averaged over all the attributes in the class. A high value of cohesion (a low lack of cohesion) implies that the class is well designed. A cohesive class will tend to provide a high degree of encapsulation, whereas a lack of cohesion decreases encapsulation and increases complexity.