Scoped vs unscoped enum in C++
An enumeration is a distinct type (user-defined type) with named constants that are known as enumerators. The name of the enumeration becomes an enum name within its scope. In C++, the enumeration type is declared with an enum key. These enum keys can be only an enum or enum class…