An
enum type is a type whose
fields consist of a fixed set of constants.
Enum can be used whenever a set of constant is required.
Other alternative is int constants using int-enum patterns.
enum types are type-safe as you can not pass a same named constant of another set where enum type constant is required.
On Friday, November 9, 2012 5:51:17 AM UTC+5:30, amy wrote: