title: C++ templates and inheritance
body: <p>can I mix inheritance and templates this way ? :</p>
  
  <pre><code>template &lt;class T&gt; 
  class AbstractType { // abstract
  //....
  }
  
  template &lt;class T&gt; 
  class Type1 : public AbstractType&lt;T&gt; {
  //....
  }
  </code></pre>
  
  <p>And later on, can I use these classes like this:</p>
  
  <pre><code>AbstractType&lt;SomeClass&gt;* var1 = new Type1&lt;SomeClass&gt;();
  </code></pre>
  
  <p>Thx for help.</p>