GoF- Strategy Pattern
A behavioural design pattern that defines a family of algorithms, encapsulates each one, and makes them interchangeable. This allows the client to choose the appropriate algorithm at runtime without altering the client’s code. Structure: Context: Maintains a reference to a...