Mid GoF Patterns

Multiple Algorithms:?

  • Use the Strategy Pattern when you have multiple algorithms for a specific

task and want to switch between them easily (e.g., sorting, encryption,

compression).

More from Design Patterns in C#

All questions for this course