class Shape {
private int x, y; // Position
protected int getX() { return x; }
protected int getY() { return y; }
public void setPosition(int px, int py) {
x = px;
y = py;
}
@Override public String toString() {
return "Shape(" + x + ", " + y + ")";
}
}