title: Inheritance in nested class
body: <p>I would like to have a class <code>Type</code>, and three classes <code>Integer</code>, <code>Real</code>, and <code>String</code> extending <code>Type</code>. Is it possible to have the three classes nested inside <code>Type</code>? So that I could write <code>Type::Integer int</code>, and get an object of type <code>Type::Integer</code>, which inherits from <code>Type</code>?</p>
  
  <pre><code>class Type {
     class Integer : public Type {
  
     };
     class Real : public Type {
  
     };
     class String : public Type {
  
     };
  };
  
  Type::Integer int;
  </code></pre>