Contents:
The Invoker class stores a command and triggers its execution or undo.
Public Functions
Sets the command to be executed.
command – The command to set.
Executes the stored command.
Undoes the stored command.