用运算符delete删除—个动态对象时( )
A.
首先为该动态对象调用构造函数,再释放其占用的内存
B.
首先释放该动态对象占用的内存,再为其调用构造函数
C.
首先为该动态对象调用析构函数,再释放其占用的内存
D.
首先释放该动态对象占用的内存,再为其调用析构函数
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/239742.html
上一篇:TranslationTranslate the following sentences into Chinese.5. Telecommuting holds great promise as a tool that can help older workers to maintain their integration in the economy and in society.
下一篇:VPN主要采用四项技术来保证安全:隧道技术、加解密技术、____、使用者与设备身份认证技术。