Question: what is the difference between enum and constant?
Answer: The primary advantage is type safety. With a set of constants, any value of the same intrinsic type could be used, introducing errors. With an enum only the applicable values can be used. An Enum class is used to specify a range of constants that will be frequently used within an application.