October 2022
Beginner
1084 pages
19h 16m
English
In the last chapter, we learned about enumerations and saw how they allow us to assign meaningful names to constants. In their basic form, the first name will represent the value 0 and each subsequent name will have a value of one more, but it is possible to assign different values to the names and thereby change the default values. Enumerations, we learned, help make code more readable, and we can use methods of the Enum class to get the name or value of an item or items in the enumeration. Finally, we also saw that an enumeration ...
Read now
Unlock full access