What is/are the difference(s) between COMMAND PATTERN & STRATEGY PATTERN? I confused because the logic of putting/selection generic object at run time and then executing the generic method is happening in both the patterns.
In both the patterns, an Interface is there between the context and implementation.
I think I still am not able to elaborate my confusion, but confusion is there.
I went back to review that. I liked that Ilja said the distinction wasn't all that important. Command, Strategy and State may look an awful lot alike structurally but vary in why, how and when you choose which implementation class to use.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop