Re: Using Singleton over Factory pattern
Monday, November 26, 2001 03:09 PM
singleton = single instance. therefore, you cannot use singleton to create other object instances because the class ceases to be singleton (it becomes doubleton, tripleton... :-))) ). factory on the other hand is used to create objects. factory is usually implemented as singleton. the idea behind this is to have a single class responsible for creating objects of a given type.