Strategy Design Pattern
A Behavioral Design Pattern for Runtime Algorithm Selection
Press Space for next page
What is Strategy Pattern?
Behavioral design pattern
Encapsulates algorithms into separate classes
Allows runtime behavior switching
Based on composition over inheritance
Makes algorithms interchangeable
Enter fullscreen
Go to previous slide
Go to next slide
Show slide overview
Switch to dark mode theme
Show drawing toolbar
Presenter Mode
Show info
Adjust settings
1
/ 9