By BTM
via epicweb.pl
Published: May 01 2009 / 15:41
A Singleton pattern is a simple design pattern used when you wish to have only one instance of given object for the application lifespan. A good example of this would by a SQL wrapper class - you only want to connect to the DB once and be able to query the database from different places in your application.



Add your comment