A-A+
如果定义了一个类myclass 则为myclass类对象以成员函数形式重载后置++运算符的声明应该为()。
问题详情
如果定义了一个类myclass,则为myclass类对象以成员函数形式重载后置++运算符的声明应该为()。
A.myclass operator++();
B.myclass &operator++();
C.myclass operator++(int);
D.myclass &operator++(int);
参考答案
myclass operator++(int);