I think, this video makes it more complex than it is. Strategy is all about encapsulating changes in such a way that there will be least modifications required to add new behaviour or to update current behaviour
example is good i believe your basic is weak. in factory we are concern about object creation, in stategy we are concern with differnt algorithms in different scenarios
I think, this video makes it more complex than it is. Strategy is all about encapsulating changes in such a way that there will be least modifications required to add new behaviour or to update current behaviour
Explained very well
Hi bro
Hello
This example is confused with factory design pattern. Don't just give bookish example
example is good i believe your basic is weak. in factory we are concern about object creation, in stategy we are concern with differnt algorithms in different scenarios