Exemplo n.º 1
0
        static void Main()
        {
            AlgorithmBase algorithmBase1 = new ConcreteAlgorithmA();
            algorithmBase1.TemplateMethod();

            AlgorithmBase algorithmBase2 = new ConcreteAlgorithmB();
            algorithmBase2.TemplateMethod();
        }
Exemplo n.º 2
0
        static void Main()
        {
            AlgorithmBase algorithmBase1 = new ConcreteAlgorithmA();

            algorithmBase1.TemplateMethod();

            AlgorithmBase algorithmBase2 = new ConcreteAlgorithmB();

            algorithmBase2.TemplateMethod();
        }