//! The x value
int _x;
//! The y value
- int _y;
+ int _y;
public:
//! Constructs a new Point with 0,0 values
//! Changes the x value to the new value specified
void setX(int x) { _x = x; }
//! Returns the x value
- void x() const { return _x; }
+ int x() const { return _x; }
//! Changes the y value to the new value specified
- void setY(int x) { _x = x; }
+ void setY(int y) { _y = y; }
//! Returns the y value
- void y() const { return _x; }
+ int y() const { return _y; }
+
+ //! Changes the x and y values
+ void setPoint(int x, int y) { _x = x; _y = y; }
};
}