设类Test将其他类对象作为成员,则创建类Test的对象时,下列描述正确的是
A.先执行类的构造函数
B.先执行成员对象的构造函数
C.先执行类的析构函数
D.先执行成员对象的析构函数
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/241307.html
上一篇:简述股票基金、债券基金、货币市场基金和混合基金的资产配置的区别。
下一篇:SummarizationRead each of the following short paragraphs and complete the phrase or sentence that expresses the main idea of the paragraph. The first letter of the missing word is given before the blank.Paragraph 2.A drug addict needs to repeat it ag