static void Main(string[] args)
        {
            // Create a jet plane
            var jetEngine = new JetEngine();
            var fokker    = new Plane();

            fokker.Start(jetEngine);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            // Create a jet plane
            var jetEngine = new JetEngine();
            var fokker    = new Plane(jetEngine);

            fokker.Start();

            // Create a Propeller plane
            var propellerEngine = new PropellerEngine();
            var cessna          = new Plane(propellerEngine);

            cessna.Start();
        }