格式: 对象 instanceof 类: 判断对象a是否是A的一个实例.是的话,返回ture , 否则 false; Person p2 = new Woman(); Woman w = (Woman)p2;