exo4: add a basic main loop for annotation iteration.
[Project_POO.git] / exo4 / TP2 / Point.java
diff --git a/exo4/TP2/Point.java b/exo4/TP2/Point.java
deleted file mode 100644 (file)
index 89382d5..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-
-@ClassPreamble (
-    author = "Jérôme Benoit",
-    date = "11/02/2012"
-)
-class Point {
-    private double x;
-    private double y;
-
-    Point() {
-        /*
-         * FIXME?: init to (0,0)
-         */
-    }
-
-    Point (double x, double y) {
-        this.x = x;
-        this.y = y;
-    }
-
-    public void setX(double x) {
-        this.x = x;
-    }
-
-    public double getX() {
-        return x;
-    }
-
-    public void setY(double y) {
-        this.y = y;
-    }
-
-    public double getY() {
-        return y;
-    }
-
-    public Point additionner(Point p) {
-        Point pNew = new Point(p.getX() + getX(), p.getY() + getY());
-        return pNew;
-    }
-
-    public String toString() {
-        return "(" + x + "," + y + ")";
-    }
-
-}