public Car(int numberOfWheels,
            SeatBelt seatBelt,
            string color,
            Windscreen windscreen,
            Engine engine)
 {
     NumberOfWheels = numberOfWheels;
     SeatBelt       = seatBelt;
     Color          = color;
     Windscreen     = windscreen;
     Engine         = engine;
 }
Пример #2
0
 public CarBuilder AddWindscreen(Windscreen windscreen)
 {
     Windscreen = windscreen;
     return(this);
 }