my dog learned polymorphism
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Difference between Factory method pattern and dynamic polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Difference between Factory method pattern and dynamic polymorphism" Watch "Difference between Factory method pattern and dynamic polymorphism" New topic
Author

Difference between Factory method pattern and dynamic polymorphism

govindarajan Janarthanan
Greenhorn

Joined: Mar 22, 2011
Posts: 1
can anyone say me the difference between Factory method pattern and dynamic polymorphism..

Thanks
Govind.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32087
    
207

The factory method is for creating objects. Polymorphism is about calling the right method on an object.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: Difference between Factory method pattern and dynamic polymorphism