@xianc78 he's talking about shapes and how if you add a new kind of shape you end up having to change all the switch statements instead of just inheriting from the shape class.
which i mean, is sort of true, although using switches like this came from languages that didn't have polymorphism
which i mean, is sort of true, although using switches like this came from languages that didn't have polymorphism