Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
The Command Design Pattern 'encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations' [1]
Personally, I view a Command as a class containing a single push button (labeled 'Execute'), where the class itself does not know what this push button does.
In [1] a Command base class is described. But instead I show two of my personal flavors of the Command Design Pattern.
//--------------------------------------------------------------------------- |
Screen output:
Play #0 |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.