Beispiel #1
0
        static void Main(string[] args)
        {
            FlyableOrc orc     = new FlyableOrc();
            IFlyable   flyable = new FlyableOrc();

            DoFly(orc);
            DoFly(flyable);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            FlyableOrc flyingOrc = new FlyableOrc();

            flyingOrc.Shout();
            flyingOrc.Fly();

            Skeleton skeleton = new Skeleton();

            skeleton.Shout();
        }