[Cs3] Singleton and Factory Question

Mikhail Nesterenko mikhail at cs.kent.edu
Tue May 10 20:47:54 EDT 2016


> 
> Is a singleton class an example of a factory because it creates one
> instance from an object-instance() defines onlyInstance_;?
> 

No, they are different patterns. However, they both create
objects. Hence, they are called creational patterns. We studied other
creational patterns. Can you name them?

Thanks,
--
Mikhail


More information about the cs3 mailing list