Exemplo n.º 1
0
        public static void Run()
        {
            Director d = new Director();

            Engine    e  = new Engine(d);
            Accelator ac = new Accelator(d);
            CarBreak  cb = new CarBreak(d);

            d.Setup(e, cb, ac);
            e.EngineStart();
        }
Exemplo n.º 2
0
 public void Setup(Engine e, CarBreak cb, Accelator ac)
 {
     this.e  = e;
     this.cb = cb;
     this.ac = ac;
 }