interface S1
{
int x = 0;
}
class B
{
int x =1;
}
class C extends B implements S1
{
public void pX()
{
System.out.println(x);
}
public static void main(String[] args) {
new C().pX();
}
}
为什么输出为0作者: 黄金龙 时间: 2013-1-27 20:16
没结果的吧.....2个的平级的东西 就好像你能在 同一个方法中 int x=0 int x=0???