Memento Pattern: Canvas Undo Checkpoints
UML Class Diagrams · made in Skemio

What it shows
- Originator creates snapshot mementos without exposing internal state.
- Caretaker manages undo stacks without inspecting or modifying snapshots.
- Trade-off: full state snapshots consume memory; use diffs for large files.
The takeaway
Preserve complete object encapsulation while providing multi-level rollback using Mementos.
- #MementoPattern
- #DesignPatterns
- #SoftwareArchitecture
- #OOP
- #UMLDiagram
- #Coding





