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?

2nd Dec 2016, 8:41 AM
Trey
2 Respuestas
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...}
2nd Dec 2016, 1:24 PM
Aleksandar
Aleksandar - avatar
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...}
6th Feb 2017, 1:07 PM
kumar abhishek
kumar abhishek - avatar