问题 单项选择题

将前缀运算符“--”重载为非成员函数,下列原型中,能正确用于类中说明的是

A.Decr& operator --(int);

B.Decr operator --( Decr&,int);

C.friend Decr& operator --(Decr&);

D.frlend Decr operator --(Decr&,int);

答案

参考答案:C

单项选择题
单项选择题