Strategy Design Pattern - GeeksforGeeks
https://www.geeksforgeeks.org/strategy-pattern-set-1/
A strategy pattern is a behavioral design patternthat allows the behavior of an object to be selected at runtime. It is one of the Gang of Four (GoF)design patterns, which are widely used in object-oriented programming. In … See more 1. Context The Context is a class or object that holds a reference to a strategy object and delegates the task to it. 1. It acts as the interface between the client and the strate… 1. Context: You, as the traveler, represent the context in this analogy. You have a sp… 2. Strategies: The different modes of transportation (car, train, plane) represen… 3. Interface:
1. Context
The Context is a class or object that holds a reference to a strategy object and delegates the task to it. 1. It acts as the interface between the client and the strate…
1. Context: You, as the traveler, represent the context in this analogy. You have a sp…
2. Strategies: The different modes of transportation (car, train, plane) represen…
3. Interface:
DA: 74 PA: 52 MOZ Rank: 18