예제 #1
0
 public static void Reconstruct(ref Car car, CarEngine carEngine)
 {
     car.Engine = carEngine;
 }
예제 #2
0
 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;
 }