Memento Design Pattern

Introduction Memento design pattern states that object state can be externalized and can be restored as needed. This pattern mentions three components which are object of interest i.e. Originator, Memento which wraps the originator and  client that takes care of the memento object called as Caretaker. Why do you need this pattern? The pattern can … Continue reading Memento Design Pattern