scitools.com

← Metric catalog

Max Inheritance Tree is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Max Inheritance Tree

API ID: MaxInheritanceTree
Also Known As: Depth of Inheritance Tree (DIT)
Languages: C#, C++, Java, Pascal, Python, Web
Targets: Classes

Maximum depth of class in inheritance tree.

The depth of a class within the inheritance hierarchy is the maximum number of nodes from the class node to the root of the inheritance tree. The root node has a DIT of 0. The deeper within the hierarchy, the more methods the class can inherit, increasing its complexity

Also known as Chidamber & Kemerer - Depth of Inheritance Tree (DIT).


Targets By Language: Configuration: