Q. Which of the following is an object pattern that encapsulates interchangeable algorithms in objects so the algorithm can vary independently of the classes that use it? (Solved)
1. chain of responsibility
2. strategy
3. mediator
4. memento
- b. strategy