title: I was given to implement this function: name operator + (name const &) using operator+() in below program
body: <pre><code>#include&lt;iostream&gt;
  using namespace std;
  
  class name
  {
      int x,y;
  public:     
      name(int a, int b)  { x=a; y=b; }   
      name operator + (name const &amp;obj){
          name one;
          one.x = x + obj.x;
          one.y = y + obj.y;
          return res;
      }
  void print(){
          cout&lt;&lt;&quot;Values are: &quot;&lt;&lt;x&lt;&lt;&quot;,&quot;&lt;&lt;y&lt;&lt;endl;} 
  };
  
  int main()
  {
      name c1(4,4),c2(6,6);
      name c3=c1+c2;
      c3.print();
      return 0;
  }
  </code></pre>
  <p>This displays error: [Error] no matching function for call to 'name::name()'</p>
  <p>Could anyone tell me what is wrong with the code?</p>