I couldn't distinct the two
patterns. It seems that the two patterns it the same. Maybe i don't have the image down for them. I couldn't think of a case to use Template Medthod instead of a Strategy. Can any show me some real world problem using Template Medthod or Strategy? I think that will help
alot.
I know the different in definition but not on when to use them.
I know Strategy is intented to allow different rules of algorithms depend upon the context in which they occur. Selecting an alogorithm that needs to be applied depends up the client.
i know Template Method pattern define the skeletion of algorithm in an operation. Redefine the alogorithm in subclasses without changing the algorithm's structure.
When you are supposed to use Template Method patterns but switching to Strategy it still work. And the other way around.
I know it is not like that but I couldn't distinct it.
thanks.