I hope you enjoyed my article and thanks for taking the time to write a response. It’s much appreciated :)
It’s a factory that adheres to the Open/Closed principle.
So, let’s say you implement a factory using switch or if-else.
How do you extend it? If the answer is adding another if-else or extra case, you’ve got yourself into a lot of trouble. Unless it’s a stupid simple application of course.