public class Point extends Object {
    private double x, y;

    public Point(Point p) {
        this(p.x, p.y);
    }
    public Point(double x, double y) {
        this.x = x;
        this.y = y;
    }
    public double norme() {
        return Math.sqrt(this.x*this.x + this.y*this.y);
    }
    public double distance(Point p) {
        Point pdelta = new Point(p.x - this.x, p.y - this.y);
        return pdelta.norme();
    }

    @Override
    public String toString() {
        return "(" + this.x + ", " + this.y + ")";
    }

}
