<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/** An instance represents a point (x, y) in the plane */
public class Point {
    private int x; // x-coordinate
    private int y; // y-coordinate

    /** Constructor: A point (x, y) */
    public Point(int x, int y) {
      this.x = x;
      this.y = y;
    }

    /** =  repr. of this point in form "(x, y)" */
    public String toString() {
            return "(" + x + ", " + y + ")";
    }
}

// "this" is an expresssion that evaluates to the name of the object in which it occurs</pre></body></html>