예제 #1
0
 public Car(Color color, Engine engine, Transmission transmission)
 {
     _Color        = (Color)color.Clone();
     _Engine       = (Engine)engine.Clone();
     _Transmission = (Transmission)transmission.Clone();
 }
예제 #2
0
 public static Car Construct(Color color, Engine engine, Transmission transmission)
 {
     return(new Car((Color)color.Clone(), (Engine)engine.Clone(), (Transmission)transmission.Clone()));
 }