How to implement a factory pattern without using any if-elseif construct or switch-case construct?
Anonymous
Using a Dictionary collection which contains the Factory Object name as a key and a constructor for an object as the value.
Check out your Company Bowl for anonymous work chats.