• 2022-05-31
    给出以下代码,请问以下哪些语句放置在第六行会引起编译错误?( )1.class Super{2.public float getNum(){return 3.0f;}3.}4.5.public class Sub extends Super{6.7}请选择一个正确答案。
    A: (1)public float getNum() {return 4.0f;}
    B: (2)public void getNum(){}
    C: (3) public void getNumdouble (){}
    D: (4)public double getNumfoat (){return 4.0d;}
  • 举一反三