Interview Questions

What is enum?

Enum is nothing but an enumerated list with a set of pre-defined values.
You can create a variable with set of pre-defined values, so that at any point of time, it can have one of the values defined. By this way, you are making sure that your variable cannot have another values except the defined ones.