Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I know that methods in a class should have high cohesion which roughly translates to having all the methods use all the instance variables directly or indirectly. I know that LCOM4 (Lack of cohesion)metric is useful for having a quantitative figure of how much cohesive the methods in a class are. A class with a LCOM4 value of 1 will be considered pretty good while a class with LCOM4 value of, say, 10 is considered a poorly designed class and this probably tells that we are better off decomposing the original class into 10 separate classes. All this is okay but what does the 4 signify in LCOM4 metrics?

share|improve this question
    
not sure about it, but here: blog.codecentric.de/en/2012/03/… they say it stands for "4th attempt to make it right" :-/ –  Samuele Mattiuzzo Mar 20 '13 at 17:58

1 Answer 1

up vote 4 down vote accepted

LCOM4 is the fourth version of LCOM.

See http://www.aivosto.com/project/help/pm-oo-cohesion.html#LCOM4, under the subheading "Readings for LCOM4."

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.