TextMemento (Memento):?
- The TextMemento captures the state of the TextEditor object (in this
case, the text content). It doesn't expose any internal details of the
TextEditor, preserving encapsulation.
case, the text content). It doesn't expose any internal details of the
TextEditor, preserving encapsulation.