Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Simple Factory pattern and Factory Method pattern

 
Suresh Appagundi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know what is the difference between Simple Factory pattern and Factory Method pattern?
And also would be helpful, if any good site is suggested regarding,
different types of patterns with examples.
thanks in advance.
 
Roger Zacharias
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>I need to know what is the difference between Simple Factory pattern and
>Factory Method pattern?
>And also would be helpful, if any good site is suggested regarding,
>different types of patterns with examples.
Hi,
I only know the Factory Method and the Abstract Factory.
Both hide object creation. Factory Method creates products depending on arbitrary parameters and Abstract Factory creates product families, i.e. this factory can create factories.
OK?
Roger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic