Programming - Concept
enumeration
(Enum)
A defined list of allowed named values for a particular kind of data
What's it for?
Restricts a value to a known set of options so software handles it consistently.
For example…
An order-status field uses an enum allowing only New, Packed, Shipped or Delivered rather than any arbitrary text