public static void Reconstruct(ref Car car, CarEngine carEngine)
 {
     car.Engine = carEngine;
 }
 public static Car Construct(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     return(new Car(color, engine, transmission));
 }
示例#3
0
 public Car(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     Color        = color;
     Engine       = engine;
     Transmission = transmission;
 }