Exemplo n.º 1
0
    public void GetCars(Salon salon)
    {
        ICarIterator iterator = salon.CreateNumerator();

        while (iterator.HasNext())
        {
            Car book = iterator.Next();
            Console.WriteLine(book.Name);
        }
    }