这里,第9行把 b1 = obj;,编译失败,为什么呢,把一个B类的引用,又赋给B,哪儿错了吖555
```java
package homework;
public class HomeWork15 {
public static void main(String[] args) {
AAA obj = new BBB();//向上转型
BBB b1 = obj;
System.out.println("obj的运行类型=" + obj.getClass());//BBB
obj = new CCC();//向上转型
System.out.println("obj的运行类型=" + obj.getClass());//CCC
obj = b1;
System.out.println("obj的运行类型=" + obj.getClass());//BBB
}
}
class AAA {//超类
}
class BBB extends AAA {//父类
}
class CCC extends BBB {//子类
}
```