- All Implemented Interfaces:
- java.lang.Cloneable
@OpenApi
public class NumberOfChildren
extends com.nomagic.magicdraw.metrics.types.BasicType
This metric counts the number of subclasses for a class.
Classes with large number of children are considered to be difficult to modify and
usually require more testing because of the effects on changes on all the children.
They are also considered more complex and fault-prone because a class with numerous
children may have to provide services in a larger number of contexts and therefore
must be more flexible. The size of NOC approximately indicates how an application reuses code:
the greater number of children, the greater the reuse of code.