0
How do you make an enum not just name a type but work already without a switch statement like a constructor of a class?
2 Respostas
0
Try with enum Enum_name {one, two...} ; Then in your class define field: Enum_name example; Then use filed you created in switch like this: switch(example){case...}
0
Try with enum Enum_name {one, two...} ; Then in your class define field: Enum_name example; Then use filed you created in switch like this: switch(example){case...}