Explore Library
FlashcardBeginner

Enum as a Type Annotation

An enum name can be used as a type to restrict allowed values.

Question

How can you use an enum as a type annotation?

Click to reveal answer