1 Pair Pair::operator+(const Pair& other) const 2 { 3 int xval = x + other.x; 4 int yval = y + other.y; 5 6 return Pair(xval, yval); 7 }