Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Design pattern  RSS feed

 
vishwas cheluva n
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of singleton design pattern??? and wat is the difference between singleton and factory???
 
Archana Nanjundarao
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Singleton helps in ensuring that only one instance of the class exists. Factory pattern is used to create objects of the class without exposing the instantiation logic.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!