From da3ea0b1ba30aad7f7832f432daa69d712183098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sat, 23 Aug 2014 13:41:00 +0300 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e03411fa4..7b1ba9a3b 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,10 @@ ##State **Intent:** Allow an object to alter its behavior when its internal state changes. The object will appear to change its class. + +##Strategy +**Intent:** Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it. + +##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. +