Mapa mental
Enum
Conteúdo do mapa
Enum
user defined types where all possible values are explicitly listed.
How to write: static enum ______ {Value, Value 2} <--- no equals sign
- How to call: nameofenum.Value ex: Meal.LUNCH
Values in an enum are typically capitalized ex: LUNCH
Ops
- .name(): returns a string of the value ex: Meal firstOne = Meal.LUNCH; System.out.println(firstOne.name()) returns LUNCH in a string.
Informações
- Descrição
- Computer Science Mapa Mental sobre Enum, criado por Tate Johnson em 26-04-2021.
- Criado por
- Tate Johnson
- Visualizações
- 0
- Tags
- Avaliação