Python etc / Choosing subclass

Choosing subclass

Let’s delve into a pretty typical situation. You have some subclasses, and you have to pick one according to some parameter provided by a user. Here is my article on how to do it in Python.