Esempio n. 1
0
 public static int Main ( string [] args)
 {
         BookAboutMovie jurassicPark = new BookAboutMovie("Jurassic Park");
         Console.WriteLine ("Book Title : " + jurassicPark.GetItem (2));
         Console.WriteLine ("Book Title : " + ((IBook)jurassicPark)[2] );
         return 0;
 }
Esempio n. 2
0
        public static int Main(string [] args)
        {
            BookAboutMovie jurassicPark = new BookAboutMovie("Jurassic Park");

            Console.WriteLine("Book Title : " + jurassicPark.GetItem(2));
            Console.WriteLine("Book Title : " + ((IBook)jurassicPark)[2]);
            return(0);
        }