interface Foo{
int k=0;
}
public class Test implements Foo{
public static void main(String args[]){
int i;
Test test =new Test();
i=test.k;
i=Test.k;
i=Foo.k;
}
}
what is the result?
...全文
1862打赏收藏
请看这道题……
interface Foo{ int k=0; } public class Test implements Foo{ public static void main(String args[]){ int i; Test test =new Test(); i=test.k; i=Test.k; i=Foo.k; } } what is the result?