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(); }
public void Setup(Engine e, CarBreak cb, Accelator ac) { this.e = e; this.cb = cb; this.ac = ac; }