Esempio n. 1
0
 public static Car Construct(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     return(new Car(color, engine, transmission));
 }
Esempio n. 2
0
 public Car(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     Color        = color;
     Engine       = engine;
     Transmission = transmission;
 }