class B
{
};
#include <iostream>
#include <typeinfo>
using namespace std;
int main(int argc, char* argv[])
{
B b;
if(typeid(b)==typeid(B))
cout<<"b is a class B object"<<endl;
else cout<<"b is not a class A object"<<endl;
if(typeid(b)==typeid(A))
cout<<"b is a class A object"<<endl;
else cout<<"b is not a class A object"<<endl;
cin.get();
return 0;
}