Ejemplo n.º 1
0
 //Konstruktoren
 public Fahrzeug(string name, int preis, int maximalGeschwindigkeit)
 {
     this.Name  = name;
     this.Preis = preis;
     this.MaximalGeschwindigkeit = maximalGeschwindigkeit;
     this.Zustand = FahrzeugZustand.Stehend;
     this.AktuelleGeschwindigkeit = 0;
 }
Ejemplo n.º 2
0
 public void Parke()
 {
     this.Zustand = FahrzeugZustand.Stehend;
     this.AktuelleGeschwindigkeit = 0;
 }
Ejemplo n.º 3
0
 public void StoppeMotor()
 {
     this.Zustand = FahrzeugZustand.Fahrend;
 }