Exemple #1
0
        static void Main(string[] args)
        {
            Player pl = new Player();

            IPlayable  ipl = pl;
            IRecodable irc = pl;

            ipl.Play();
            irc.Record();

            Console.WriteLine(ipl.GetHashCode());
            Console.WriteLine(irc.GetHashCode());
            Console.WriteLine(pl.GetHashCode());
            Console.ReadKey();
        }