问题
单项选择题
类Test定义如下,将下列( )方法插入③行处是不合法的。 ① public class Test{ ② public float Method (float a,float b){ } ③ ④ }
A.public float Method (float a,float b,float { }
B.pubic float Method(floatc,float{}
C.public int Method (int a,int {}
D.pivate float Method (int a,int b,int {}
答案
参考答案:B