title: C++ declaring static enum vs enum in a class
body: <p>What's the difference between the <code>static enum</code> and <code>enum</code> definitions when defined inside a class declaration like the one shown below?</p>
  
  <pre><code>class Example
  {
       Example();
       ~Example();
  
       static enum Items{ desk = 0, chair, monitor };
       enum Colors{ red = 0, blue, green };
  }
  </code></pre>
  
  <p>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.</p>