...

/

Scoped Enumerations

Scoped Enumerations

In this lesson, we will learn about Enumerations or Enums.

Enumerations conveniently define integer constants with names. These integer constants are called enumerators. Let’s go over some of the drawbacks of using classic enums.

Drawbacks of Enumerations in Classical C++

A short reminder. Three drawbacks of enumerations:

  1. The enumerators implicitly convert to int.
  2. They introduce the enumerators in the enclosing
...
Access this course and 1400+ top-rated courses and projects.