GoF Design Patterns – Memento Design Pattern
The Memento design pattern is a behavioral pattern that allows an object to capture and store its internal state so that it can be restored later if needed. It provides a way to undo or rollback an object’s state to a previous state without violating its encapsulation. …