Exemplo n.º 1
0
 public Car(Engine engine, Color color, Transmission transmission)
 {
     this.EngionType       = engine.EngionType;
     this.ColorType        = color.ColorType;
     this.TransmissionType = transmission.TransmissionType;
 }
Exemplo n.º 2
0
        public Car Construct(Engine engine, Color color, Transmission transmission)
        {
            Car car = new Car(engine, color, transmission);

            return(car);
        }