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. | Tech writer with +1M views. Sharing my opinion and what I learn. .NET backend engineer, ex big4 SC. New YouTube Channel https://bit.ly/3vxqNHj