They do two very different things.
A Factory exists to create one or more copies of a class. He or the method he provides can be provided to another class that needs a dependency, and the dependent class can call the Factory method to get an instance.
One single exists to create one and ONLY one copy of the class. A class reference is obtained statically, but this reference can be passed as an instance, unlike a purely static class.
Keiths
source share