diff --git a/5 Media/8 Courses/Design Patterns by Construx.md b/5 Media/8 Courses/Design Patterns by Construx.md index 97e8be1..9f33cc2 100644 --- a/5 Media/8 Courses/Design Patterns by Construx.md +++ b/5 Media/8 Courses/Design Patterns by Construx.md @@ -361,6 +361,20 @@ Variation on the theme: Event Channel: many publishers and many subscribers > - event channels (variant) supports many publishers and many subscribers on the same channel ### Template Method +Prerequisite: Stategy +`#ifdef do this` can be replaced with the template method. + +#### Pattern Forces +Need to define skeleton of algorithm but defer some details: +- make abstract class easier by reminding developers to supply logic for all situation-specific details +Added layer of indirection is acceptable + +#### Design Principles + + +> [!Note] Key Points +> Contents + ### Factory Method