Number of Methods Overridden (NMO)

 

Overview

The number of redefined operations plays a role in the specialization of the class and must be maintained in a proportion that continues to justify inheritance.

 

Too many redefined operations implies too big a difference with the parent class and inheritance then makes less sense.

 

 

Computation

For a class, this is the count of the number of inherited operations that are redefined by the class.

 

 

Nominal range

Between 0 and 5.

 

 

Analysis

A class which inherits services must use them with a minimum of modifications.  If this is not the case, the inheritance loses all meaning and becomes a source of confusion.