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