示例#1
0
        static void Main(string[] args)
        {
            Library library = new Library();
            Reader reader = new Reader();
            reader.SeeBooks(library);

            Console.Read();
        }
示例#2
0
 public void SeeBooks(Library library)
 {
     IBookIterator iterator = library.CreateNumerator();
     while (iterator.HasNext())
     {
         Book book = iterator.Next();
         Console.WriteLine(book.Name);
     }
 }