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: MaxInheritanceTreeAlso 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).
- C#: Class, Struct
- C++: Class, Struct, Union
- Java: Class, Interface
- Pascal: Class, Interface
- Python: Class
- Web: PHP Class, PHP Interface
- This metric can be disabled from "Project Configuration/Metrics/Object Orientated" with the "Show inheritance metrics" option.