added tutorial links to bridge, decorator, abstract-factory, strategy and template method patterns

This commit is contained in:
Sanket
2017-09-23 20:55:38 -04:00
parent fb4c0f77e5
commit 684cad9beb
5 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,9 @@ The Template Method pattern should be used
* when common behavior among subclasses should be factored and localized in a common class to avoid code duplication. This is good example of "refactoring to generalize" as described by Opdyke and Johnson. You first identify the differences in the existing code and then separate the differences into new operations. Finally, you replace the differing code with a template method that calls one of these new operations
* to control subclasses extensions. You can define a template method that calls "hook" operations at specific points, thereby permitting extensions only at those points
## Tutorial
* [Template-method Pattern Tutorial](https://www.journaldev.com/1763/template-method-design-pattern-in-java)
## Credits
* [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)