CWE一覧に戻る
CWE-1074

過度に深い継承を持つクラス

Class with Excessively Deep Inheritance
脆弱性 作成中
JA

クラスの継承レベルが高すぎる。
には多数の親クラスがあります。

多数の親クラス」の解釈は製品や開発者によって異なるかもしれませんが、CISQはデフォルトで最大7つの親クラスを推奨しています。

EN

A class has an inheritance level that is too high, i.e., it
has a large number of parent classes.

While the interpretation of "large number of parent classes" may vary for each product or developer, CISQ recommends a default maximum of 7 parent classes.

Scope: Other / Impact: Reduce Maintainability; Increase Analytical Complexity
MITRE公式ページ — CWE-1074