假设对A类定义一个重载“+”号运算符的成员函数,以便实现两个A类对象的加法,并返回相加结果,则该成员函数的函数原型是
A.operator+(constA&A1,constA&A2)
B.A::operator+(A&A2)
C.AA::operator+(constA&A2)
D.AA::operator+()
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/240139.html
上一篇:Since life is short and the world is wide,() you start exploring it().
Since life is short and the world is wide,() you start exploring it().
下一篇:公共经济学开始重视政府规制问题是在( )。