What is the difference between the Strategy
pattern and Polymorphism
in Java?
I'm confused that whatever is achieved via Strategy Pattern is basically possible by polymorphism. Correct me if I'm wrong in this regard.
Please, also provide me example to eradicate my confusion.
Aucun commentaire:
Enregistrer un commentaire