下列关于构造函数的描述中,不正确的是
A.构造函数的函数名与类名相同
B.构造函数可以设置默认参数
C.构造函数的返回类型缺省为int型
D.构造函数可以重载
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/240142.html
上一篇:下列句子,属于被动句的一句是( )
下一篇:In Longman Dictionary of Contemporary English, one ofthe entries of the word blood says: [C]old use a fashionable young man. The information that is NOT provided under this entry is ______.