This content has been marked as final. Show 2 replies
This looks more close to abstract factory pattern rather than factory pattern. I see individually creating from file, collection etc.. as individual factory. So clients actually take help of abstract factory to get the instances of DataObject.
Jim_Found wrote:Then why do you need a factory?
How can I create a Factory class when the subclass constructors have different signatures?