public VehicleClient(IVehicleFactory factory, string type) { bike = factory.GetBike(type); scooter = factory.GetScooter(type); }
public VehicleClient(IVehicleFactory factory, string type) { this.bike = factory.GetBike(type); this.scooter = factory.GetScooter(type); this.factoryType = factory.GetType().Name; }
public Component(IScooter scooter, Dimension _dimension) : base(_dimension) { _scooter = scooter; }
public Client(IVehicle vehicle, string type) { _bike = vehicle.GetBike(type); _scooter = vehicle.GetScooter(type); }