14 lines
192 B
C++
14 lines
192 B
C++
class Point {
|
|
int x, y;
|
|
|
|
Point(int x, int y) {
|
|
this->x = x;
|
|
this->y = y;
|
|
}
|
|
|
|
void move(int dx, int dy) {
|
|
this->x += dx;
|
|
this->y += dy;
|
|
}
|
|
};
|
|
|