示例#1
0
文件: Program.cs 项目: dmalf1997/rep1
        public override int MaxSpeed(AbstractEngine engine)
        {
            int ms = engine.max_speed;

            return(ms);
        }
示例#2
0
文件: Program.cs 项目: dmalf1997/rep1
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
 }
示例#3
0
文件: Program.cs 项目: dmalf1997/rep1
 public abstract int MaxSpeed(AbstractEngine engine);