Encapsulation of Requests:?
- The command (in this case, AddTextCommand) encapsulates the request to
add text to the document as an object. This allows for parameterization of the
command with different requests (e.g., adding different text) while decoupling
the sender (the TextEditor) from the receiver (Document).
Follow: