类Test1定义如下:publicclassTest1{publicfloataMethod(floata,floatb

题目
单选题
类Test1定义如下:publicclassTest1{publicfloataMethod(floata,floatb){}____}根据方法重载的定义,将以下哪种方法插入下划线部分是不合法的。()
A

publicfloataMethod(floata,floatb,floatc){}

B

publicfloataMethod(floatc,floatd){}

C

publicfloataMethod(inta,intb){}

D

publicfloataMethod(inta,intb,intc){}

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

定义int a; float f; double i; 表达式 15+i*f+ˊAˊ的值是 _______ 。

A.float

B. int

C. char

D. double


参考答案:D

第2题:

floatb[4][5];定义b为5×6(5行6列)的数组。()

此题为判断题(对,错)。


参考答案:错误

第3题:

Test2定义如下: 1.publicclassTest1 2.{publicfloataMethod(floata,floatb)throws 3.IOException{} 4.} 5.publicclassTest2extendsTest1{ 6. 7.} 将以下哪种方法插入行6是不合法的。()

A.floataMethod(floata,floatb){}

B.publicintaMethod(inta,intb)throwsException{}

C.publicfloataMethod(floatp,floatq){}

D.publicintaMethod(inta,intb)throwsIOException{}


参考答案:A

第4题:

类Test定义如下,将下列( )方法插入③行处是不合法的。 ①publicClass Test{ ②public float Method(floatA,float b){} ③ ④}

A.public float Method(floatA,float b,floatC){}

B.public float Method(noatC,float d) {}

C.public int Method(intA,int b){}

D.private float Method(intA,int b,intC){}


正确答案:B

第5题:

设有如下定义:structjan{inta;floatb;}c2,*p;若有p=&c2;则对c2中的成员a的正确引用是:()。

A.p.c2.a

B.p->c2.a

C.(*p).c2.a

D.(*p).a


正确答案:D

第6题:

定义int a; float f; double i; 6.定义表达式15+i*f+ˊAˊ的值是() 。

A.float

B. int

C. char

D. double


参考答案:D

第7题:

C语言允许函数类型缺省定义,此时函数值隐含的类型是

A.float

B.int

C.long

D.double


正确答案:B

第8题:

14类Test1定义如下: 1.publicclassTest1{ 2.publicfloataMethod(floata,floatb){} 3. 4.} 将以下哪种方法插入行3是不合法的。()

A.public floata Method(floata,floatb,floatc){}

B.public floata Method(floatc,floatd){}

C.public inta Method(inta,intb){}

D.private floata Method(inta,intb,intc){}


参考答案:B

第9题:

在定义图文混排样式中控制文字环绕图片的是()。

A.float

B.clear

C.width

D.hight


正确答案:A

第10题:

类testl定义如下: public class test1 { public float amethod(float a,float b){ } }

A.public foat amethod(float a,float b,foat c){ }

B.public float amethod(float c,float d){ }

C.public int amethod(int a,int b){ }

D.private float amethod(int a,int b,int c){ }


正确答案:B

更多相关问题