+ 1
so is a enum Kind of like a array
in terms of the way it stores multiple objects , what are the differences
3 Respuestas
+ 2
An enum is a set of constants that you want to use for your program. you can declare these constants and then use them throughout your program without redefining them or recreating them thus saving memory and execution time.
+ 1
In an enum, you can also define methods for those objects.
0
An enum is sort of like an array, but it's meant to be used for constants, and it allows tools like switch statements to be used.