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

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

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

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

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

            Console.ReadKey();
        }