I have a question of using switch case for instanceof object:
For example: my problem can be reproduced in Java as following-
if(this instanceof A) doA(); else if(this instanceof B) doB(); else if(this instanceof C) doC(); How would it be implemented using switch...case?