slides/Point.java
author Christian Urban <christian.urban@kcl.ac.uk>
Fri, 25 Nov 2022 00:03:15 +0000
changeset 448 db2a3e3287a9
parent 32 45557ad18ea6
permissions -rw-r--r--
updated

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; }
}