sclass DPt { double x, y; *() {} *(Point p) { x = p.x; y = p.y; } *(double *x, double *y) {} Point getPoint() { ret new Point(iround(x), iround(y)); } [stdEq] public S toString() { ret x + ", " + y; } }