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