Ejemplo n.º 1
0
        static void Main()
        {
            Console.WriteLine("About to print a booklet for saloon cars");
            AbstractBookletPrinter saloonBooklet = new SaloonBooklet();
            saloonBooklet.Print();

            Console.WriteLine("About to print a service history booklet");
            AbstractBookletPrinter serviceBooklet = new ServiceHistoryBooklet();
            serviceBooklet.Print();

            Console.Read();
        }
        static void Main()
        {
            Console.WriteLine("About to print a booklet for saloon cars");
            AbstractBookletPrinter saloonBooklet = new SaloonBooklet();

            saloonBooklet.Print();

            Console.WriteLine("About to print a service history booklet");
            AbstractBookletPrinter serviceBooklet = new ServiceHistoryBooklet();

            serviceBooklet.Print();

            Console.Read();
        }