Advantage of factory pattern? Singleton class?
Anonymous
Factory pattern has the advantage of leaving creation details to the subclass, making it more flexible. Singleton provides a single static reference and saves on complexity by being available only when necessary, saving on instantiation when only one global object is required.
Check out your Company Bowl for anonymous work chats.