public class Stad {
   private int x,y; //x en y coordinaat van de stad in een coordinatenstelsel
   
   Stad(int x, int y){
      this.x = x;
      this.y = y;
   }
   
   public int getX(){
      return x;
   }
   
   public int getY(){
      return y;
   }
   
   public boolean isGelijk(Stad s){
      return ( (s.getX() == x) && (s.getY() == y) );
   }
}