Link to home
Start Free TrialLog in
Avatar of ndoung
ndoung

asked on

what is the C++ equivalent of JAVA instanceof ?

I have a pointer to a C++ base class object. I need to know what is the real class in order to do something.
In JAVA, we can use instanceof to check. I am looking for something equivalent in C++.
Avatar of no worries :-) no nothing
no worries :-) no nothing
Flag of Greece image

There is no an equivalence of Java instanceof in C++.
ASKER CERTIFIED SOLUTION
Avatar of no worries :-) no nothing
no worries :-) no nothing
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of tampnic
tampnic
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial