58,454
社区成员
发帖
与我相关
我的任务
分享
public class havefun {
father m;
son dd = new son();
bob cc = new bob();
//m = d;
//d = m;
m = dd;
dd = (son)m;
}
class father{
public int a;
}
class son extends father{
public int b;
}
class bob extends father{
public int c;
}