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