public class Punkt { private float x, y ; private int nummer ; static int anzahl = 0 ; public Punkt () { } public Punkt (float x1, float y1) { x=x1; y=y1; } public float getX () { return this.x ; } public float getY () { return this.y ; } public int getNummer () { return this.nummer ; } public int getAnzahl () { return anzahl ; } public Punkt verschiebe (int x1, int y1) { return Punkt(this.x+x1,this.y+y1); } public void print() { } }