This chapter covers the Command pattern.
GoF Definition
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue, or log requests, and support undoable operations.
Concept
Using this pattern, you encapsulate a method invocation process. Here an object can invoke an operation through some crystalized method and doesn’t worry about how to perform the operation. This pattern is among those patterns that are normally tough to understand by merely reading the description. The concept becomes clearer when you see the implementations. So, ...