Beispiel #1
0
        public static void Run()
        {
            var rescuedVehicles = new List <Vehicle>
            {
                VehicleCreator.Create("Onix", Gait.SMALL),
                VehicleCreator.Create("Cobalt", Gait.MIDDLE),
                VehicleCreator.Create("Hilux", Gait.BIG)
            };

            rescuedVehicles.ForEach(v => AutoHelp.CreateAutoHelp(v).MakeAttendance());
        }
 public override Vehicle CreateVehicle(string model, Gait gait)
 {
     return(VehicleCreator.Create(model, gait));
 }