public
class Punkt
{
   private int x, y;
   public Punkt ()
   {
      ustawWspolrzedne(320, 200);
   }
   public Punkt (int x, int y)
   {
      ustawWspolrzedne(x, y);
   }
   void ustawWspolrzedne(int wspX, int wspY)
   {
      x = wspX;
      y = wspY;
   }
   Punkt pobierzWspolrzedne()
   {
      Punkt punkt = new Punkt();
      punkt.x = x;
      punkt.y = y;
      return punkt;
   }
   void pobierzWspolrzedne(Punkt punkt)
   {
      punkt.x = x;
      punkt.y = y;
   }
   void ustawX (int wspX)
   {
      x = wspX;
   }
   void ustawY (int wspY)
   {
      y = wspY;
   }
   int pobierzX ()
   {
      return x;
   }
   int pobierzY ()
   {
      return y;
   }
}
