关于构造器的问题
java吧
全部回复
仅看楼主
level 1
sonicsnail 楼主
Given the following classpublic class Crowle{ public static void main(String argv[]){ Crowle c = new Crowle(); } Crowle(){ System.out.println("Greetings from Crowle"); } } What is the datatype returned by the constructor? 1) null 2) integer3) Crowle4) no datatype is returned
2008年01月31日 17点01分 1
level 0
4) I think. Because constructor doesn't have return type.
2008年02月01日 22点02分 3
level 0
4)
2008年02月02日 12点02分 6
1