Enum With and Without Values

In this lesson, you will discover how to use an enum with explicit and implicit values.

The role of enum #

An enum is a structure that proposes several allowed values for a variable. It is a way to constrain variable values by defining specific possible entries.

Create a free account to view this lesson.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy