Command pattern

In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all … More