static void Main(string [] args) { INewspaper ny = new NYPaper(); INewspaper la = new LAPaper(); IIterator nyi = ny.CreateIterator(); IIterator lai = la.CreateIterator(); Console.WriteLine("------------ NY paper"); PrintReporters(nyi); Console.WriteLine("------------ LA paper"); PrintReporters(lai); }
static void Main(string[] args) { INewspaper nyt = new NYPaper(); INewspaper lat = new LAPaper(); IIterator nytIterator = nyt.CreateIterator(); IIterator latIterator = lat.CreateIterator(); Console.WriteLine("----------- NY Paper"); PrintReports(nytIterator); Console.WriteLine("----------- LA Paper"); PrintReports(latIterator); }