LLD - Behavioral Design Patterns — Part 1
You are designing a text editor with undo functionality using the Command pattern. Which design choice best supports undo operations efficiently?
execute() and undo() methods to reverse its action.undo() on the last command efficiently. Other options either lack command encapsulation or are inefficient.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions