package abstractFactory;
import abstractFactory.americanFleet.CityJet;
import abstractFactory.americanFleet.Dodge;
import abstractFactory.americanFleet.GeneralMotorsTruck;
public class AmericanFleetFactory extends FleetFactory {
public AmericanFleetFactory() {
super();
}
public Bus MakeBus
(String number
) { return new CityJet(number, 100);
}
public Car MakeCar
(String number
) { return new Dodge(number, 5, true);
}
public Truck MakeTruck
(String number
) { return new GeneralMotorsTruck(number, 8, true, true);
}
}