This commit is contained in:
Debucquoy
2023-03-09 11:38:23 +01:00
parent d3c715a655
commit 5456020f7c
26 changed files with 1604 additions and 0 deletions

26
q2/tp2/Point.java Normal file
View File

@ -0,0 +1,26 @@
public class Point {
private double x, y;
public String toString(){
return "("+ x+ ":" + y + ")";
}
Point(){
x = 0;
y = 0;
}
Point(double x, double y){
this.x = x;
this.y = y;
}
public double getX() {
return x;
}
public double getY() {
return y;
}
}