01Chapter 1: Your First Enum: Named Constants Done RightAn enum is a type with a fixed list of named values. The days of the week are a good example: there are seven, and there will never be an eighth. An enum stops you from passing a wrong value, such as the string "Fryday", because the compiler only accepts real constants.1 min read
02Chapter 2: Constant-Specific BehaviorAn enum constant can carry its own code. An abstract method is a method with no body. If an enum declares one, every constant must supply its own body. The result is that each constant behaves differently.1 min read
03Chapter 3: What Records Cannot DoA record is a short class made to hold data. That short form comes with some rules. This chapter explains those rules, then shows when a record, an enum, or a plain class fits best.2 min read