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