In Object-Oriented metrics, the Lack of Cohesion in Methods (LCOM) metric measures:
AThe number of subclasses
BThe execution speed of class methods
CThe degree of dissimilarity or un-relatedness among methods in a class based on shared instance variables
DThe total lines of code in a class
Explanation
High LCOM indicates low cohesion (methods do not share instance variables), suggesting the class should be split.
Exam Relevance
- Topic: Software Quality
- Subtopic: Object-Oriented Metrics

No Comments