Section 9 requires non-public enum methods to use private instead of protected:
Non-public methods MUST use private instead of protected, as enums do not support inheritance.
It states nothing equivalent for constants, yet enum constants can be non-public, and protected const is valid. The same rationale applies to constants.
Is there a reason for this I'm missing, or should the rule be updated to apply to non-public enum constants as well?
Section 9 requires non-public enum methods to use
privateinstead ofprotected:It states nothing equivalent for constants, yet enum constants can be non-public, and
protected constis valid. The same rationale applies to constants.Is there a reason for this I'm missing, or should the rule be updated to apply to non-public enum constants as well?