Base+Class+Point

class point{ protected: int x, y; public: point(int ptx, int pty){x = ptx; y = pty;}; ~point{}; void setptx(int ptx){x = ptx;}; void setpty(int pty){y = pty;}; int getptx{return x;}; int getpty{return y;}; void Display{cout << x << "," << y; };

};//Base Class point