问题:
public class Test {}
What is the prototype of the default constructor?()
A . Test()
B . Test(void)
C . public Test()
D . public Test(void)
E . public void Test()
public class Test {}
What is the prototype of the default constructor?()
● 参考解析
The correct answer to this question is C. The default constructor always takes the same access of the class. In this case, the class is public and so does the default constructor.
相关内容
相关标签