- Enum is a keyword, Enums are strongly typed constants.
- It is value type means,stored in stack directly value, It is Inherited from the System.Enum namespace.
- Default type for Enum is Integer, If No values are provided to your enums the value of first element represents to 0 and so on
- we will uses when set of integral numbers are associated.
Syntax:
public enum Month { //List of elements with values or without values }
public enum Month
{
//List of elements with values or without values
}
Example:-
Output :-