checking object properties

rahulmaximus's Avatar, Join Date: Jun 2011
Go4Expert Member
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..
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Not unless your compiler implements some kind of runtime type information (RTTI).