public static void main(String args[]) { Template templateA = new TemplateImplA(); Template templateB = new TemplateImplB(); templateA.action(); templateB.action(); }
public static void main(String[] args) { Template t = new TemplateImpl(); t.action(); }