Beispiel #1
0
 public VehicleClient(IVehicleFactory factory, string type)
 {
     bike    = factory.GetBike(type);
     scooter = factory.GetScooter(type);
 }
Beispiel #2
0
 public VehicleClient(IVehicleFactory factory, string type)
 {
     this.bike        = factory.GetBike(type);
     this.scooter     = factory.GetScooter(type);
     this.factoryType = factory.GetType().Name;
 }