/* Point.java * Author: Anne (edited by Torben) * * Opgave 19.1: representation of points */ class Point implements PointInterface { private int x, y; Point(int x, int y) {this.x = x; this.y = y;} public boolean equals(Point p) {return this.x == p.x && this.y == p.y ;} public String toString() {return "(" + x + ", " + y + ")" ;} public void move(int dx, int dy) {x = x + dx ; y = y + dy;} }