看来A5也hit thermal wall了# Apple - 家有苹果
l*7
1 楼
Guess what's the result?
public class Greek{
int i=1;
public int getI(){
System.out.print("Super");
return i;
}
public static void main(String arhs[]){
Greek ga=new Arabik();
System.out.print(ga.i+" "+ga.getI());
}
}
class Arabik extends Greek{
int i=2;
public int getI(){
System.out.print("Sub");
return i;
}
}
public class Greek{
int i=1;
public int getI(){
System.out.print("Super");
return i;
}
public static void main(String arhs[]){
Greek ga=new Arabik();
System.out.print(ga.i+" "+ga.getI());
}
}
class Arabik extends Greek{
int i=2;
public int getI(){
System.out.print("Sub");
return i;
}
}