1: class Super{2: public float getNum( ) {return 6.0f;}3: }4: public class Sub extends Super5: {6: 7: }以下选项中,( )放在第6行会引起编译错误。
选项:
A:public float getNum( ) {return 4.0f;};
B:public void getNum( ) { };
C:public void getNum(double d) { };
D:public double getNum(double d) {return 6.0+d;}
发布时间:2024-03-31 19:49:34