• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is Factory Method?  RSS feed

 
Ravi Kishore Vaddiparthy
Greenhorn
Posts: 11
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody explain what is Factory Method with good easy example?
what is its Use ?
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Factory method pattern is a good place to start, also with some examples and comments on them. I am sure that you can find a lot of other resources by searching the internet a bit.
 
Archana Nanjundarao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Factory method is one of creational design pattern. It's mainly used to create the objects which is decoupled from the actual implementing system. You can think it as an interface and the subclass giving an actual definition while implementing the interface.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!