Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 523 Bytes

FinalClassWithProtectedMember.md

File metadata and controls

11 lines (6 loc) · 523 Bytes

Pattern: Final class with protected member

Issue: -

Description

This rule finds classes marked final that contain protected members. If a class is final then it may not be subclassed, and there is therefore no point in having a member with protected visibility. Either the class should not be final or the member should be private or protected.

Further Reading