What's the difference between the static enum
and enum
definitions when defined inside a class declaration like the one shown below?
class Example
{
Example();
~Example();
static enum Items{ desk = 0, chair, monitor };
enum Colors{ red = 0, blue, green };
}
Also, since we are defining types in a class, what do we call them? By analogy if I define a variable in a class, we call it a member variable.