This commit is contained in:
Joaquin Gottlebe
2025-07-30 15:57:48 +02:00
parent e49fcfac46
commit a639c34cee
273 changed files with 20151 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
package figure;
public class Point {
private int x;
private int y;
public Point() {
}
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public void moveTo(int x, int y) {
this.x = x;
this.y = y;
}
public void moveBy(int x, int y) {
this.x += x;
this.y += y;
}
public String toString() {
return this.x + ", " + this.y;
}
}