#include using namespace std; class point { public: float x, y; point(float ix, float iy) : x(ix), y(iy) {} point operator+(point other){ return point(x + other.x, y + other.y); } void print(){ cout << "(" << x << ", " << y << ")"; } }; int main(){ point a(3, 6); point b(17, -2); point c = a + b; a.print(); cout << endl; b.print(); cout << endl; c.print(); cout << endl; }