类Test1、Test2定义如下:
1. public class Test1 {
2. public float aMethod(float a, float b) throws
3. IOException { }
4. }
5. public class Test2 extends Test1 {
6. //Line6
7. }
将以下()方法插入行6是不合法的。
类Test1、Test2定义如下:
1. public class Test1 {
2. public float aMethod(float a, float b) throws
3. IOException { }
4. }
5. public class Test2 extends Test1 {
6. //Line6
7. }
将以下()方法插入行6是不合法的。
float aMethod (float a, float b) {}
public int aMethod (int a, int b) throws Exception {}
public float aMethod (float P, float q) {}
public int aMethod (int a, int b) throws IOException {}