public class Point {+ −
private final int x, y;+ −
+ −
public Point(int x, int y) {+ −
this.x = x;+ −
this.y = y;+ −
}+ −
+ −
public int x() { return x; }+ −
+ −
public int y() { return y; }+ −
}+ −