Implementation of instance testing in Java, C++, C#
- by Jake
For curiosity purposes as well as understanding what they entail in a program, I'm curious as to how instance testing (instanceof/is/using dynamic_cast in c++) works. I've tried to google it (particularly for java) but the only pages that come up are tutorials on how to use the operator.
How do the implementations vary across those langauges? …