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(); }
public abstract int MaxSpeed(AbstractEngine engine);