GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Enum

Tate Johnson Computer Science Englisch

Inhalt der Mindmap

Enum

  1. user defined types where all possible values are explicitly listed.

  2. How to write: static enum ______ {Value, Value 2} <--- no equals sign

    • How to call: nameofenum.Value ex: Meal.LUNCH
  3. Values in an enum are typically capitalized ex: LUNCH

  4. Ops

    • .name(): returns a string of the value ex: Meal firstOne = Meal.LUNCH; System.out.println(firstOne.name()) returns LUNCH in a string.

Informationen

Beschreibung
Computer Science Mindmap am Enum, erstellt von Tate Johnson am 26/04/2021.
Erstellt von
Tate Johnson
Aufrufe
0
Tags
enum
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck