mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 05:20:09 +00:00
Update README.md
This commit is contained in:
1 parent
522cdfe277
commit
db4625b9fe
1 file changed
+2
@@ -70,3 +70,5 @@
|
||||
##Template method
|
||||
**Intent:** Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
|
||||
|
||||
##Visitor
|
||||
**Intent:** Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.
|
||||
Reference in new issue
Block a user