Exemple #1
0
        public override int MaxSpeed(AbstractEngine engine)
        {
            int ms = engine.max_speed;

            return(ms);
        }
Exemple #2
0
 public abstract int MaxSpeed(AbstractEngine engine);
Exemple #3
0
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
     abstractBody   = car_factory.CreateBody();
 }