Command pattern

Topics: Design Pattern

The command pattern packages an action and its required data into an object for later execution.

“In Object-oriented programming, the command pattern is a behavioral Design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.” (Wikipedia)