public override int MaxSpeed(AbstractEngine engine)
        {
            int ms = engine.max_speed;

            return(ms);
        }
Exemple #2
0
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
     abstractBody   = car_factory.CreateBody();
 }
Exemple #3
0
 public abstract int maxSpeed(AbstractEngine engine);
Exemple #4
0
 public override int maxSpeed(AbstractEngine engine)
 {
     return(engine.maxSpeed);
 }
Exemple #5
0
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
     abstractshape  = car_factory.CreateShape();
 }
Exemple #6
0
 public Client(CarFactory car_factory)
 {
     abstractCar    = car_factory.CreateCar();
     abstractEngine = car_factory.CreateEngine();
     abstractkuzov  = car_factory.CreateKuzov();
 }