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

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -