Exemple #1
0
        public static void Main()
        {
            Book bookOne   = new Book("Animal Farm", 2003, "George Orwell");
            Book bookTwo   = new Book("The Documents in the Case", 2002, "Dorothy Sayers", "Robert Eustace");
            Book bookThree = new Book("The Documents in the Case", 1930);

            global::Library libraryOne = new global::Library();
            global::Library libraryTwo = new global::Library(bookOne, bookTwo, bookThree);
        }
Exemple #2
0
        public static void Main()
        {
            Book bookOne   = new Book("Animal Farm", 2003, "George Orwell");
            Book bookTwo   = new Book("The Documents in the Case", 2002, "Dorothy Sayers", "Robert Eustace");
            Book bookThree = new Book("The Documents in the Case", 1930);

            global::Library libraryOne = new global::Library();
            global::Library libraryTwo = new global::Library(bookOne, bookTwo, bookThree);

            foreach (var book in libraryTwo)
            {
                Console.WriteLine(book.Title);
            }
        }