Contents:
The Memento class stores the state of the Originator.
Public Functions
Constructor to initialize the Memento with a state.
state – The state to save.
Retrieves the saved state.
The saved state as a string.