求一道关于JAVA 中class extend的选择题
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/06/25 02:07:55
求一道关于JAVA 中class extend的选择题
希望能给出正确答案的解释,谢谢!难度中等即可
希望能给出正确答案的解释,谢谢!难度中等即可
![求一道关于JAVA 中class extend的选择题](/uploads/image/z/7878684-12-4.jpg?t=%E6%B1%82%E4%B8%80%E9%81%93%E5%85%B3%E4%BA%8EJAVA+%E4%B8%ADclass+extend%E7%9A%84%E9%80%89%E6%8B%A9%E9%A2%98)
public class Test{
public static Foo f=new Foo();
public static Foo f2;
public static Bar b=new Bar();
public static void main(String arg0[]){
for(int x=0;x
public static Foo f=new Foo();
public static Foo f2;
public static Bar b=new Bar();
public static void main(String arg0[]){
for(int x=0;x