类Test定义如下,将下列哪个方法插入③行处是不合法的? ( ) ①public class Test { ②public float Method(float a,float b){} ③ ④}

admin2009-02-15  20

问题 类Test定义如下,将下列哪个方法插入③行处是不合法的?    (    )    ①public class Test {    ②public float Method(float a,float b){}    ③    ④}

选项 A、public float Method(float a,float b,float c){}
B、public float Method(float c,float d){}
C、public int Method(int a,int b){}
D、private float Method(int a,int b,int c){}

答案2

解析
转载请注明原文地址:https://kaotiyun.com/show/njnp777K
0

最新回复(0)