Number of Children

From Maisqual Wiki

Jump to: navigation, search

Number of Children

The NOC is the number of immediate sub-classes subordinated to a class in the class hierarchy. It has been introduced by Chidamber and Kemerer[1].

Contents

Theoretical basis

NOC relates to the notion of scope of properties. It is a measure of how many sub-classes are going to inherit the methods of the parent class.

Viewpoints

  • Greater the number of children, greater the reuse, since inheritance is a form of reuse.
  • Greater the number of children, the greater the likelihood of improper abstraction of the parent class. If a class has a large number of children, it may be a case of misuse of sub-classing.
  • The number of children gives an idea of the potential influence a class has on the design. If a class has a large number of children, it may require more testing of the methods in that class.

See also

Papers:

References

  1. A Metrics Suite for Object Oriented Design
Personal tools