0

What's usually stored in an Enum?

20th Sep 2021, 3:07 PM
Tim
Tim - avatar
3 Respostas
+ 2
Enum is user defined variable. It stores constant variables with their number values. Happy coding!
20th Sep 2021, 3:10 PM
mesarthim
mesarthim - avatar
+ 2
mesarthim It begs the question why Enum would even be useful if other collection objects could get the job done more efficiently and effectively
20th Sep 2021, 3:12 PM
Tim
Tim - avatar
+ 2
Nick You can collect the constant using just one list. Other way is defining all constants one by one and it takes time to read and analyse. So, enum is useful, I think.
20th Sep 2021, 3:17 PM
mesarthim
mesarthim - avatar