Memento Pattern - main players



  • Originator
    • A class that has state to be saved
  • Memento
    • A class for objects representing the Originator’s saved state
  • Caretaker
    • A class that is a holder for the mementos
  • Client
    • Keeps a copy of the originator