Questions
Questions

SOFT3202 COMP9202 (ND) Quiz 3

Single choice

I want to implement undo/redo feature in my application. What design pattern should I use?

Options
A.Decorator
B.Template Method
C.Singleton
D.Command
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
The question asks which design pattern is appropriate for implementing undo/redo functionality in an application, with the correct option identified as Command. Option 1: Decorator. This pattern is about extending an object's behavior by wrapping it with another object, adding responsibilities dynamically. It does not provide a natural wa......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!