static void Main(string[] args)
        {
			//TallGuy guy = new TallGuy("Tommy", 50);
			//guy.TalkAboutMyself();
			//guy.Honk();

			ScaryScary fingersTheClown = new ScaryScary("big balls", 14);
			FunnyFunny someFunnyClown = fingersTheClown;
			IScaryClown someOtherScaryClown = someFunnyClown as ScaryScary;
			someOtherScaryClown.Honk();
			Console.ReadKey();
			
		}
Exemple #2
0
        static void Main(string[] args)
        {
            TallGuy tallGuy = new TallGuy()
            {
                Height = 74, Name = "Jimmy"
            };

            tallGuy.TalkAboutYourself();
            tallGuy.Honk();

            ScaryScary  fingersTheClown     = new ScaryScary("big shoes", 14);
            FunnyFunny  someFunnyClown      = fingersTheClown;
            IScaryClown someOtherScaryClown = someFunnyClown as ScaryScary;

            someOtherScaryClown.Honk();
            someOtherScaryClown.ScareLittleChildren();
            Console.ReadKey();
        }