Command Pattern

The Command Pattern is a behavioral design pattern that encapsulates requests as objects, allowing for greater flexibility in software design. By turning requests into objects, this pattern enables features like parameterization, queuing, and logging of operations. It is particularly useful in scenarios where actions need to be executed, delayed, or undone dynamically.