//Factory Method protected AircraftFactory MakeAircraft() { engine = airFactory.createEngine(); cockpit = airFactory.createCockPit(); wings = airFactory.createWings(); return(this); }
static void M2(IWings w, int distance) { w.Fly(distance); }