特别不懂求答案真不能整明白

img

img

img

img

img

img

第一题:
(1)int[5] student = {90,82,44,70,65};
(2)i<5
(3)switch
(4)System.out.println("student"+i+"'s result is C!");
(5)default:
第二题:

(1) B b = new A();改成 B b = (B) new A();或者B b = new B();
(2) class B中myPrint(float r)前面需要加void

第三题:
public Vehicle()的解释 :Vehicle类的无参构造函数
System.out.println("一般车辆的启动方法!!")的解释:在终端中打印“一般车辆的启动方法!!”
class Car extends Vehicle的解释:定义一个Car类,Car扩展Vehicle类
Vehicle v=new Car()的解释:生成一个Car类的实例,并把它转换为Vehicle类型
v.startUp()的解释: 调用Car中的startUp方法。

第四题
main函数中的代码补充如下:

public static void main(String[] args){
        Food f = new Apple();  //
        f.doEat();
        f = new Beef();
        f.doEat();
    }

输出结果:
我是苹果,我属于水果,我可以充当事务被吃掉!
我是牛肉,我属于肉类,我可以充当事务被吃掉!