Close
Restaurant deception to saw command design pattern

Command design pattern

Introduction Command design pattern states that the client request can be encapsulated in an object called command, which is further delivered to the appropriate receiver which knows how to handle this client request. Why is this pattern needed? In use cases when multiple clients might need the same functionality to be shared then command design…

Editor feature with memento design pattern

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…