public Car(string model)
 {
     this.Model = model;
     Engine     = new Engine();
     Cargo      = new Cargo();
 }
 public Car(string[] carInfo)
 {
     this.Model      = carInfo[0];
     this.CarsEngine = new Engine(int.Parse(carInfo[1]), int.Parse(carInfo[2]));
     this.CarsCargo  = new Cargo(int.Parse(carInfo[3]), carInfo[4]);
 }
Пример #3
0
 public Car(string model, Engine engine, Cargo cargo)
 {
     this.Model  = model;
     this.Engine = engine;
     this.Cargo  = cargo;
 }