예제 #1
0
 static void Main(string[] args)
 {
     AbstractClass a = new ConcreteClassA();
     a.TempleteMethod();
     a = new ConcreteClassB();
     a.TempleteMethod();
 }
예제 #2
0
        static void Main(string[] args)
        {
            Template template;
            template = new ConcreteClassA();
            template.TemplateMethod();

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

            Console.ReadKey();
        }
예제 #3
0
파일: Program.cs 프로젝트: niuniuliu/CSharp
        static void Main(string[] args)
        {
            AbstractClass c;

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

            c = new ConcreteClassB();
            c.TemplateMethod();

            Console.Read();

        }
예제 #4
0
파일: Program.cs 프로젝트: shennwei/Notes
        static void Main(string[] args)
        {
            AbstractClass c = new ConcreteClassA();

            c.TemplateMethod();
        }