slides/Point.java
changeset 32 45557ad18ea6
equal deleted inserted replaced
31:d0caa12ab8d8 32:45557ad18ea6
       
     1 public class Point {
       
     2   private final int x, y;
       
     3  
       
     4   public Point(int x, int y) {
       
     5     this.x = x;
       
     6     this.y = y;
       
     7   }
       
     8  
       
     9   public int x() { return x; }
       
    10  
       
    11   public int y() { return y; }
       
    12 }