I think I “got” what Strategy pattern is all about. It’s about having the ability to change the behavriour on the fly. It’s the ability to use HAS-A composition instead of inheritance so the main logic can be changed on the fly.
I think I “got” what Strategy pattern is all about. It’s about having the ability to change the behavriour on the fly. It’s the ability to use HAS-A composition instead of inheritance so the main logic can be changed on the fly.