Exemple #1
0
        static void Main(string[] args)
        {
            Template template;
            template = new ConcreteClassA();
            template.TemplateMethod();

            template = new ConcretaClassB();
            template.TemplateMethod();

            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Template template;

            template = new ConcreteClassA();
            template.TemplateMethod();

            template = new ConcretaClassB();
            template.TemplateMethod();

            Console.ReadKey();
        }