Public and Package Attributes (PPA)

Description:

Declare the attributes either private or protected and provide operations to access or change them. There might be one exception when some class is used just as struct in C language: it just holds some values, and thus has no methods. The Formally option regulates whether to raise violations for such classes. When Formally is not checked, violations are not raised.

Example:

class PPA {
    int attr1; 
    public int attr2; 
}