title: Where to put the enum in a cpp program?
body: <p>I have a program that uses enum types.</p>
  
  <pre><code>enum Type{a,b,};
  
  
  class A
  {
   //use Type
  };
  class B
  {
    // also use that Type
  };
  </code></pre>
  
  <p>2 class are located in 2 different files.
  Should I put the type definition in a headfile or 
  in class definition for each class?</p>