public static void PrepareForTakeOff(string flighNo, string strip) { AirPlane plane = new AirPlane(); plane.Clean(); ControlTower tower = new ControlTower(); DateTime time = tower.FindNextSlotForStrip(strip); Flight flight = new Flight(plane); flight.DepartureAtTime(time); }
public Flight(AirPlane plane) { this.plane = plane; }