Object-Oriented Design Metric
- •
What it is
- •
quantitative measures applied to an object-oriented design's class structure
- •
- •
Metrics
- •
WMC (Weighted Methods per Class) — total number of methods on a class
- •
DIT (Depth of Inheritance Tree) — how many levels deep a class sits in its inheritance hierarchy
- •
NOC (Number of Children) — how many direct subclasses a class has
- •
CBO (Coupling Between Objects) — how many other classes a given class depends on
- •
LCOM (Lack of Cohesion of Methods) — how unrelated a class's methods are to each other; a higher LCOM signals worse cohesion
- •
- •