Skip to content
Advertisement

Tag: strategy-pattern

Polymorphism vs Strategy pattern

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. Answer For me, the link from CKing post and the example in Wikipedia are clear enough, but

Advertisement