public Client(CarFactory carFactory) { _abstractCar = carFactory.CreateCar(); _abstractEngine = carFactory.CreateEngine(); }
public abstract void MaxSpeed(AbstractEngine engine);
public override void MaxSpeed(AbstractEngine engine) { Console.WriteLine("Макcимальная скорость: " + engine.MaxSpeed.ToString()); }