Added real world example for Command.
This commit is contained in:
parent
eef54b41bf
commit
0ad681831b
@ -248,6 +248,9 @@
|
|||||||
* implement callback functionality
|
* implement callback functionality
|
||||||
* implement the undo functionality
|
* implement the undo functionality
|
||||||
|
|
||||||
|
**Real world examples:**
|
||||||
|
* [java.lang.Runnable](http://docs.oracle.com/javase/6/docs/api/java/lang/Runnable.html)
|
||||||
|
|
||||||
## <a name="interpreter">Interpreter</a> [↑](#list-of-design-patterns)
|
## <a name="interpreter">Interpreter</a> [↑](#list-of-design-patterns)
|
||||||
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
|
**Intent:** Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user