Part 13 - Enumerations
Declaring an Enumeration
Enumerations are handy to use as fields and properties in
Enumerations are also handy in preventing "magic numbers", which can cause unreadable code.
Enumerations technically assign an integer value to each value, but that should generally be abstracted from view.
is the same as
- Think of another good instance of using
Go on to Part 14 - Exceptions