public class Test extends B implements C
{
public void printfX()
{
System.out.println("B.x = " + super.x);
System.out.println("C.x = " + C.x);
play();
}
public static void main(String[] args)
{
// testForJPlusPlus();
// testForIPlusPlus();
// if we use the same code as C/C++, the result is different
// testForCPlusPlus();
new Test().printfX();
}
}
这个怎么解释? |