SyntaxFix
Write A Post
Hire A Developer
Questions
If you want the value you are assigning in the constructor, you need to add a method in the enum definition to return that value.
If you want a unique number that represent the enum value, you can use ordinal().
ordinal()