![]() |
checking object properties
Hi
I wanted to know if there is a way to check whether a particular object has a particular characteristics...... suppose class A { int x; } class B { int y; } I wanted to know if there is a way tht we can check if like B has x(integer) in it or whether A has y(integer) in it.. |
Re: checking object properties
Not unless your compiler implements some kind of runtime type information (RTTI).
|
| All times are GMT +5.5. The time now is 22:40. |