CWE-1086 — Class with Excessive Number of Child Classes
CWE-1086: Class with Excessive Number of Child Classes
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
A class contains an unnecessarily large number of children.
While the interpretation of "large number of children" may vary for each product or developer, CISQ recommends a default maximum of 10 child classes.
Common consequences
- Other: Reduce Maintainability, Increase Analytical Complexity
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1086.html
- CWE list: https://cwe.mitre.org/data/index.html