作业帮 > 综合 > 作业

11.Giving the following definition:

来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/06/17 19:59:20
11.Giving the following definition:
public class Upton{
publicstatic void main(String argv[]){
}
public void amethod(int i){}
//Here
}
After //Here,which statement is legal:
a) publicint amethod(int z){ return 99; }
b) publicint amethod(int i,int j){return 99;}
c) voidamethod(long l){ return 99}
d) privateint anothermethod(){}
11.Giving the following definition:
B·······················
A:方法名和传参重复
C:多了return
D:少了return