类 Parent、Child 定义如下:
1.public class Parent
2.{ public float aFun(float a, float b) throws
3.IOException {}
4.}
5.public class Child extends Parent{
6.
7.}
将以下哪种方法插入行 6 是不合法的。()
- A.
float aFun(float a, float b){ }
- B.
public int aFun(int a, int b)throws Exception{ }
- C.
public float aFun(float p, float q){ }
- D.
public int aFun(int a, int b)throws IOException{ }
纠错
查看答案
若遇到问题请联系 客服QQ:3480655671