Template Method Use Case : Design Patterns in TypeScript

Template Method Use Case : Design Patterns in TypeScript

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=nYBHh9l0IK8



Duration: 3:53
0 views
0


https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6

Documentation : https://sbcode.net/typescript/template/#template-method-use-case

In the example use case, there is an AbstractDocument with several methods, some are optional and others must be overridden.

The document will be written out in two different formats.

Depending on the concrete class used, the text() method will wrap new lines with p tags and the print() method will format text with tabs, or include html tags.

#templateMethodPattern
#typescriptTemplateMethod
#templateMethodPatternTypescript







Tags:
Design Patterns In TypeScript
TypeScript
Design Patterns
template method
template method pattern