Exemple #1
0
 public string Execute()
 {
     car.Stop();
     return("CarStopCommand.execute(): Invoking stop() on Car");
 }
 public string Undo()
 {
     car.Stop();
     return("CarMoveCommand.undo():  Undoing previous action->Invoking stop() on Car");
 }