题目:
选择题
类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. public int aFun(int a, int b)throws IOException{ }
- B. public float aFun(float p, float q){ }
- C. float aFun(float a, float b){ }
- D. public int aFun(int a, int b)throws Exception{ }
答案:
<查看本题扣1积分>