I am trying to learn State design pattern. I took example of Order being placed and having different state. I have implemented it. But I am not sure it is correct way or not. Please check below code and help in that case.
From my client code I will get the context object depending on state.
Please let me know if above implementation is correct?
Thanks in advance.
I've been selected to go to the moon! All thanks to this tiny ad:
Gift giving made easy with the permaculture playing cards