Skip to content

Glossary: Software Design Patterns in C++

Command

Also written: command pattern

A pattern that turns an action into an object that knows how to run itself and undo itself. Stored on an undo stack, such commands give the cart page an Undo button.

Where the book teaches it

Related terms

Undo stackBehavioral pattern