Ejemplo n.º 1
0
 private static void Drive(Vehicles car, Vehicles truck, string[] command)
 {
     if (command[1] == "Car")
     {
         car.Drive(double.Parse(command[2]));
     }
     else
     {
         truck.Drive(double.Parse(command[2]));
     }
 }