educative.io

Question from Amazon interview about the factory pattern

He asked what if we have a thousand subclass, what may happen of using factory patterns? How to solve it?

Oh, I think the answer is just in the next Chapter. Abstract Factory Pattern.
I wasn’t aware this pattern at that time.