How to write the definition of a derived class in c++? : <p>I don't know the  syntax for writing the definition of a class function with templates.  </p>

<p>I get an error, the complier expected ; , so that be 
void plus; 
Anyone knows to fix that!</p>

<pre><code>template&lt;class Type 
class basic{
 protected:
    Type x;
 public:
    int value;
    //virtual void  print() =0; 
  basic(Type xArg):x(xArg){}
}; 

template&lt;class Type&gt;
class plus:public basic&lt;Type&gt;{
 public: 
  Type y;
  plus(Type xArg, Type yArg):basic&lt;Type&gt;(xArg),y(yArg){}
  void print(); 

};

//template&lt;class Type&gt; 
void plus&lt;Type&gt;::print(){ 
  cout &lt;&lt; "x : " &lt;&lt; x &lt;&lt; endl;
  cout &lt;&lt; "y : " &lt;&lt; y &lt;&lt; endl;

}
</code></pre>
