static void Main(string[] args) { Template template; template = new ConcreteClassA(); template.TemplateMethod(); template = new ConcretaClassB(); template.TemplateMethod(); Console.ReadKey(); }