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