Ever wondered how the undo/redo functionality works in applications like Notepad or how games…

Let’s start with a simple example to understand it better. Imagine a class with a string property — let’s call it the Originator class…