Beispiel #1
0
        static void Main(string[] args)
        {
            AirTrafficController controlCenter = new AirTrafficController();
            Flight boeing101  = new Flight(controlCenter);
            Runway mainRunway = new Runway(controlCenter);

            controlCenter.registerFlight(boeing101);
            controlCenter.registerRunway(mainRunway);
            boeing101.getReady();
            mainRunway.land();
            boeing101.land();
            Console.ReadLine();
        }
Beispiel #2
0
 public void registerRunway(Runway runway)
 {
     this.runway = runway;
 }