title: Can one pass a parametrized class as parameter to another that would be derived by another
body: <p>First parametrized class</p>
  
  <pre><code>template&lt;typename T&gt;
  class elements
  {
      protected:
          int e,f;
      public:
          elements(){}
          elements(int ee):e(ee){}
          const elements&amp; operator=(const elements&amp; other)
          {
              e = other.e; return *this;
          }
  
  };
  </code></pre>
  
  <p>The base class </p>
  
  <pre><code>template&lt;typename T&gt;
  class list
  {
      protected:
          T item;
  };
  </code></pre>
  
  <p>Finally the class in contention</p>
  
  <pre><code>template&lt;typename T&gt;
  class row:public list&lt;elements&lt;T&gt; &gt;
  {
      public:
          row(int a)
          {
              item;
          }
  };
  </code></pre>
  
  <p>if the parameter is specified as int, list etc. Then the program runs else I keep getting the error
  'item' was not declared in this scope,</p>
  
  <p>I can't seem to get to work and would appreciate if someone could help me understand how it works.</p>
  
  <p>Thanks </p>