1 public class Point { 2 public int x = 0; 3 public int y = 0; 4 // a constructor! 5 public Point(int x, int y) { 6 this.x = x; 7 this.y = y; 8 } 9 }