下列有关java构造跟使用叙述正确的是()A. 构造器的返回值为vold类型B. 如果一个源文件中有多个类,那么构造器必须与公共类同名C. 构造器可以有0个,1个或一个以上的参数D. 每个类可以有一个以上的构造器
这个题选b,c,d但是对于B我不知道该怎么理解?
//AA.java public class AA{ public AA(){} } class BB { public BB(){}//这也没和AA同名 }
这个B选项怎么理解?
走同样的路,发现不同的人生
Obviously B is not comprehensive
This is a flaw in describing technical issues in Chinese. If the subject adjective is omitted, it means that there should be one less constructor of the class in the source file
Obviously B is not comprehensive
This is a flaw in describing technical issues in Chinese. If the subject adjective is omitted, it means that there should be one less constructor of the class in the source file