Пример #1
0
 public Locomotive(Locomotive other) : this(other.Weight, other.MaximumWeight)
 {
 }
Пример #2
0
 public Train(Locomotive locomotive, List <Wagon> wagons) : this()
 {
     Locomotive = locomotive;
     Wagons.AddRange(wagons);
 }
Пример #3
0
 public Train CreateTrain(Locomotive locomotive, IEnumerable <Wagon> wagons)
 {
     return(new Train());
 }