对于基类man, 派生类child有这样的关系: child is a man , but man is not a child. 派生类指针指向基类,等于告诉编译器,man is a child,和事实是矛盾的,所以编译器不允许.