//конструктор з параметрами 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; }
public void SetEngine(EEngineType type) { car.Engine = type; }
public void Construct(string color, ECarModel carModel, EEngineType engineType) { CarBuilder.SetColor(color); CarBuilder.SetEngine(engineType); CarBuilder.SetModel(carModel); }
public void SetEngine(EEngineType engineType) { Car.Engine = engineType; }