slides/Point.java
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 16 Nov 2016 18:48:00 +0000
changeset 52 7a4fe3f6b188
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; }
}