Protected Instance Variables 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.
Protected Instance Variables
API ID: CountDeclInstanceVariableProtectedLanguages: C#, C++, Web
Targets: Architectures, Classes, Project
Number of protected instance variables.
- C#: Project, Class, Struct
- C++: Project, Class, Struct, Union
- Web: Project, PHP Class, PHP Interface
- For projects and architectures, this metric must also be enabled from "Project Configuration/Metrics/Projects and Architectures" with the "Show aggregated class metrics" option. Enabling this option can be time consuming.
- This metric can be disabled from "Project Configuration/Metrics/Object Orientated" with the "Show method and variable count metrics" option.