X Tutup
Skip to content

Commit 522cdfe

Browse files
committed
2 parents 19554d2 + da3ea0b commit 522cdfe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,10 @@
6363

6464
##State
6565
**Intent:** Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
66+
67+
##Strategy
68+
**Intent:** Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
69+
70+
##Template method
71+
**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.
72+

0 commit comments

Comments
 (0)
X Tutup