[Design Pattern] Template Method Pattern

preview_player
Показать описание
In this Template Method Design Pattern Tutorial. It is an extremely easy design pattern to understand and use. With this pattern, you define a method (algorithm) in an abstract class. It contains both abstract methods and non-abstract methods. The subclasses that extend this abstract class then override those methods that don't make sense for them to use in the default way.

Here are the content timelines:

⭐️ Contents ⭐️
⌨️ (0:00) Intro
⌨️ (0:43) Problem
⌨️ (1:53) Solution
⌨️ (4:27) Template Method Pattern Structure

In the end, you’ll have a really good understanding on what Template Method Pattern is, what problems does it solve, and when should we use this pattern.
Рекомендации по теме