设计模式之:模版方法 二话不多说直接上代码 1、先定义一个抽象类(父类) public abstract class AbstractDisplay { public abstract void open(); public abstract void print(); p