design patterns - Can factory methods return multiple instances? -
it factory method if returns instance of class factory method if returns multiple (an array of) instances?
if need return multiple instances, it, regardless of how called. indeed factory method, doesn't matter much.
perhaps can have factory method returning single instance, , 1 calls first 1 multiple times.
Comments
Post a Comment