public void AddLocomotive(Locomotive locomotive)
 {
     rollingStocks.Add(locomotive);
 }
Exemple #2
0
 public void AddLocomotive(Locomotive locomotive)
 {
     rollingStocks.Add(locomotive);
     this.totalHorsePower += locomotive.HorsePower;
 }