#ifndef POINT_H_ #define POINT_H_ #include ; #include ; using namespace std; class Point { public: // Create a point object -- default is (0,0) if no params. Point(int xVal = 0, int yVal = 0); virtual ~Point(); // return x coordinate of the point int getX() const; // return y coordinate of the point int getY() const; // translate the point by dx in the x direction and dy in the y. virtual void translate(int dx, int dy); // convert point to a string representation virtual string toString() const; virtual bool operator==(Point other); virtual void print(ostream & out = cout) const; private: int x, y; // instance vbles }; #endif /*POINT_H_*/