title: Calling enums in another class in C++
body: <p>If we define two C++ classes. One is:</p>
  
  <pre><code>abstract class A {
    public:
      enum E {F, G, H;}
  };
  </code></pre>
  
  <p>Another is class B, and how I can use the enum E in class A then? Assuming both B and A are in  the same namespace. I know in C# we can use something like:</p>
  
  <pre><code>A.E
  </code></pre>
  
  <p>directly, but seems that is not the case of C++.</p>