コード例 #1
0
ファイル: Car.cs プロジェクト: Harnytskyi/ShkolaSoftheme
 public Car(Color color, Engine engine, Transmission transmission)
 {
     _color        = color;
     _engine       = engine;
     _transmission = transmission;
 }
コード例 #2
0
 public static Car Construct(Transmission transmission, Color color, Engine engine)
 {
     return(new Car {
         Transmission = transmission, Color = color, Engine = engine
     });
 }
コード例 #3
0
 public Car(Color color, Engine engine, Transmission transmission)
 {
     this.color        = color;
     this.engine       = engine;
     this.transmission = transmission;
 }
コード例 #4
0
 public static Car Construct(Engine engine, Color color, Transmission transmission)
 {
     return(new Car(color, engine, transmission));
 }
コード例 #5
0
        public static Car Construct(Color color, Engine engine, Transmission transmission)
        {
            Car car = new Car(color, engine, transmission);

            return(car);
        }