question about classes
<p>here is code example for  add two vectors  using classes</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

class CVector {
  public:
    int x,y;
    CVector () {};
    CVector (int,int);
    CVector operator + (CVector);
};

CVector::CVector (int a, int b) {
  x = a;
  y = b;
}

CVector CVector::operator+ (CVector param) {
  CVector temp;
  temp.x = x + param.x;
  temp.y = y + param.y;
  return (temp);
}

int main () {
  CVector a (3,1);
  CVector b (1,2);
  CVector c;
  c = a + b;
  cout &lt;&lt; c.x &lt;&lt; "," &lt;&lt; c.y;
  return 0;
}
</code></pre>

<p>it is   a bit difficult    for me to understand it and also how often it is used in  daily?</p>
