Beispiel #1
0
 public void ChangeGear(int newGear)
 {
     _vehicleControls.ChangeGear(newGear);
 }
Beispiel #2
0
 static void Drive(IVehicle vehicle)
 {
     vehicle.Accelerate(10);
     vehicle.Brake(10);
     vehicle.ChangeGear(1);
 }