Hi Barend,

Thanks a lot for taking the time to read my article! It’s much appreciated :)

Most factories I’ve encountered are implemented with switch or if-else.

I also mention the option of using reflection. That’s actually the common way I do it at client projects. But, as not every language has great reflection capabilities as C# does, I left it out.

The factory created here can be implemented in most OO languages I’d assume.

MSc. | Writer with +1M views. | Lead Developer and Manager in Big4, ex. FinTech. Sharing my opinion & what I learn. New YouTube Channel https://bit.ly/3vxqNHj

MSc. | Writer with +1M views. | Lead Developer and Manager in Big4, ex. FinTech. Sharing my opinion & what I learn. New YouTube Channel https://bit.ly/3vxqNHj