+ 1

so is a enum Kind of like a array

in terms of the way it stores multiple objects , what are the differences

10th Sep 2016, 11:54 AM
bob fly
3 Answers
+ 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.
10th Sep 2016, 8:46 PM
Dewald Oosthuizen
Dewald Oosthuizen - avatar
+ 1
In an enum, you can also define methods for those objects.
10th Sep 2016, 12:12 PM
Zen
Zen - avatar
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.
10th Jan 2017, 9:54 PM
Erik