/* The Point class Header file (Point.h) */ #ifndef POINT_H #define POINT_H #include class Point { private: int x, y; public: explicit Point(int x = 0, int y = 0); int getX() const; int getY() const; void setX(int x); void setY(int y); Point & operator++(); // ++prefix const Point operator++(int dummy); // postfix++ const Point operator+(const Point & rhs) const; // Point + Point const Point operator+(int value) const; // Point + int Point & operator+=(int value); // Point += int Point & operator+=(const Point & rhs); // Point += Point friend std::ostream & operator<<(std::ostream & out, const Point & point); // out << point friend std::istream & operator>>(std::istream & in, Point & point); // in >> point friend const Point operator+(int value, const Point & rhs); // int + Point }; #endif