//конструктор з параметрами
 public PublicTransport(string model,
                        EEngineType eType,
                        int power,
                        int axles,
                        int capacity,
                        int seats,
                        int doors,
                        bool lowClearance)
 {
     Model             = model;
     EngineType        = eType;
     Axles             = axles;
     EnginePower       = power;
     PassengerCapacity = capacity;
     Seats             = seats;
     Doors             = doors;
     LowClearance      = lowClearance;
 }
Exemplo n.º 2
0
 public void SetEngine(EEngineType type)
 {
     car.Engine = type;
 }
Exemplo n.º 3
0
 public void Construct(string color, ECarModel carModel, EEngineType engineType)
 {
     CarBuilder.SetColor(color);
     CarBuilder.SetEngine(engineType);
     CarBuilder.SetModel(carModel);
 }
Exemplo n.º 4
0
 public void SetEngine(EEngineType engineType)
 {
     Car.Engine = engineType;
 }