Usually you don’t specify a type for an enumeration and the default will be considered, which is int.
In the following example we change the type to unsigned int (uint):
enum Pounds :uint
{
Light = 10,
Medium = 30,
Heavy = 60
}
Usually you don’t specify a type for an enumeration and the default will be considered, which is int.
In the following example we change the type to unsigned int (uint):
enum Pounds :uint
{
Light = 10,
Medium = 30,
Heavy = 60
}