Code:
void test(YourClass *obj);
How to check if the obj is actually YourClass instance, but not YourClass inherited classes instance?

Should we use RTTI here?

Thanks in advance. :-D