一、模板方法模式
模板方法模式。定义为:Define the skeleton of an algorithm in an operation,deferring some steps to subclasses.Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's Define the skeleton of a
一、模板方法模式
模板方法模式。定义为:Define the skeleton of an algorithm in an operation,deferring some steps to subclasses.Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's Define the skeleton of a