#include
using namespace std;
class Point
{
private:
int x;
int y;
public:
Point(int _x = 0, int _y = 0) :x(_x), y(_y)
{
}
void print()
{
cout << x << ',' << y << endl;
}
const Point operator+(Point arg) const
{
Point pt;
pt.x = this->x + arg.x;
pt.y = this->y + arg.y;
return pt;
}
};
int main()
{
Point p1(2, 3), p2(5, 5);
Point p3;