Beispiel #1
0
 public Car(Color color, Engine engine, Transmission transmission)
 {
     _color        = color;
     _engine       = engine;
     _transmission = transmission;
 }
Beispiel #2
0
 public static Car Construct(Transmission transmission, Color color, Engine engine)
 {
     return(new Car {
         Transmission = transmission, Color = color, Engine = engine
     });
 }
Beispiel #3
0
 public Car(Color color, Engine engine, Transmission transmission)
 {
     this.color        = color;
     this.engine       = engine;
     this.transmission = transmission;
 }
Beispiel #4
0
 public static Car Construct(Engine engine, Color color, Transmission transmission)
 {
     return(new Car(color, engine, transmission));
 }
Beispiel #5
0
        public static Car Construct(Color color, Engine engine, Transmission transmission)
        {
            Car car = new Car(color, engine, transmission);

            return(car);
        }