Mid GoF Patterns

Text Editor (Undo/Redo Functionality):?

  • In a text editor (such as Microsoft Word or Notepad), users can press Ctrl + Z

to undo the most recent changes. Each time the user types, the editor saves

a snapshot of the text as a Memento. Pressing Ctrl + Z restores the text to its

previous state.

More from Design Patterns in C#

All questions for this course