Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Factory method pattern and dynamic polymorphism

 
govindarajan Janarthanan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone say me the difference between Factory method pattern and dynamic polymorphism..

Thanks
Govind.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The factory method is for creating objects. Polymorphism is about calling the right method on an object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic