定义一个类时,如果没有为类定义构造方法,则()
A.系统会创建一个带参数的构造方法
B.系统会创建一个不带参数的构造方法
C.系统什么也不做
D.系统会提示一条错误信息
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/437430.html
上一篇:Expiry Date: October 31,2001 in country of beneficiary unless otherwise specified.
下一篇:For example, viruses are emerging more frequently than ever before. Forty years ago, around two new viruses were discovered every decade. Now the figure is more like two new viruses per year.