checking object properties

Go4Expert Member
1Jun2011,02:18   #1
rahulmaximus's Avatar
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..
Mentor
1Jun2011,14:24   #2
xpi0t0s's Avatar
Not unless your compiler implements some kind of runtime type information (RTTI).