設計模式之模板方法模式(Template Method Pattern)

其實模板方法在我們平時工作使用的非常頻繁,但是沒有學習過設計模式的小夥伴可能不是很清楚模板方法的定義是什麼,即使是自己一直在用。 模板方法模式定義 Define the skeleton of an operation,deferring some steps to subclasses. Template Method lets subclasses redefine certain steps
相關文章
相關標籤/搜索