40int main (
int argc,
char *argv[])
42 printf (
"A: %d, B: %d, C: %d\n", A::CLASS_ID, B::CLASS_ID, C::CLASS_ID);
45 assert (x.instanceOf (A::CLASS_ID));
46 assert (x.instanceOf (B::CLASS_ID));
47 assert (x.instanceOf (C::CLASS_ID));
48 printf (
"x: %d\n", x.getClassId ());
51 printf (
"y: %d; instance of A: %s\n",
52 y.getClassId (), y.instanceOf (B::CLASS_ID) ?
"true" :
"false");