示例#1
0
文件: Client.cs 项目: JenyaF/Pattern
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
 }
示例#2
0
文件: AudiCar.cs 项目: JenyaF/Pattern
 public override void MaxSpeed(AbstractEngine engine)
 {
     Console.WriteLine("Макcимальная скорость: " + engine.max_speed.ToString());
 }
示例#3
0
 public abstract void MaxSpeed(AbstractEngine engine);