79258368

Date: 2024-12-06 14:40:28
Score: 2.5
Natty:
Report link

Enums in the class are implicitly static. the definition, exists outside of a class instance. Which is where you are bluring a definition. Because the definition is also static by that same logic. So, while a compiler might allow it, you should not declare enums in the class as static. it's not the first time compilers have had discrepancies in what they allow vs do not allow.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: NormBo Graham