answersLogoWhite

0

Enums are constant values. You use them when you want to limit the range of acceptable constants.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What are the differences between enums and set of defines in c?

At the present time, there is little difference. The C Standard states that enumerations are compatible with integral types.


What is the difference between an enumeration and macro?

In enumeration, values can be generated for us but in macros we have to give value for every macro template and type checking can be done in enums.


What Is The Java Enum And What Is It Used For?

The best way I can describe an enum is a class of Java language. Enums look like they are used in code string when writing a website.


What type of items are valid for use in the value list of a case clause?

Any single value or list of values can be used in the value list of a case clause, such as integers, strings, characters, enums, or constants. It is important to note that duplicate values are not allowed in the value list.


What motor oil goes in a Jeep Laredo 2001?

4.0L uses 10w304.7L uses 5w304.0L uses 10w304.7L uses 5w30


What countries uses dinar as currency?

Algeria uses the Algerian Dinar Bahrain uses the Bahrain DinarIraq uses the Iraqi DinarJordan uses the Jordanian DinarKuwait uses the Kuwaiti Dinar


What are Java enums?

An enum, short for enumerated type, is a variable type that can only take on the values that are declared inside the enum declaration. An enum is declared like a class, except the word "class" is replaced by the word "enum", and the class body is replaced by a list of values that a variable of that type can take on. You can also include methods, instance variables, and constructors in an enum.


Does Japan use euro?

No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.No country in Asia uses the Euro.


How do you value their uses?

The uses of what?


What are the Uses for maps?

One of the uses are if you are lost. One of the uses are if you are lost.


What is the oil weight for 2008 dodge avenger?

2.4L, 2.7L, uses 5w203.5L uses 10w302.4L, 2.7L, uses 5w203.5L uses 10w30


What is the engine oil viscocity for a 1999 jeep grand Cherokee Laredo?

4.0L uses 10w304.7L uses 5w304.0L uses 10w304.7L uses 5w30