Itron Interview Question

How to implement a factory pattern without using any if-elseif construct or switch-case construct?

Interview Answer

Anonymous

Jul 30, 2016

Using a Dictionary collection which contains the Factory Object name as a key and a constructor for an object as the value.