public override int MaxSpeed(AbstractEngine engine) { int ms = engine.max_speed; return(ms); }
public Client(CarFactory car_factory) { abstractCar = car_factory.CreateCar(); abstractEngine = car_factory.CreateEngine(); abstractBody = car_factory.CreateBody(); }
public abstract int maxSpeed(AbstractEngine engine);
public override int maxSpeed(AbstractEngine engine) { return(engine.maxSpeed); }
public Client(CarFactory car_factory) { abstractCar = car_factory.CreateCar(); abstractEngine = car_factory.CreateEngine(); abstractshape = car_factory.CreateShape(); }
public Client(CarFactory car_factory) { abstractCar = car_factory.CreateCar(); abstractEngine = car_factory.CreateEngine(); abstractkuzov = car_factory.CreateKuzov(); }