Template Method Pattern

From Logic Wiki
Revision as of 16:00, 31 January 2019 by AliIybar (Talk | contribs) (Created page with "Category:Extreme Programming Category:Design Patterns Category:OOP == Video == [https://www.youtube.com/watch?v=7ocpwK9uesw https://www.youtube.com/watch?v=7ocpwK...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Video

https://www.youtube.com/watch?v=7ocpwK9uesw

Definition

In Template pattern, an abstract class exposes defined way(s)/template(s) to execute its methods. Its subclasses can override the method implementation as per need but the invocation is to be in the same way as defined by an abstract class. This pattern comes under behavior pattern category.

TemplateMethodPattern.png