Exemplo n.º 1
0
 public static void runLine(ITrain train, int n)
 {
     train.setLine(n);
     train.acceptPassengers();
     train.checkTrainTicket("train");
     train.drive();
     train.stop();
 }