问题
单项选择题
已知Value是一个类,value是Value的一个对象。下列以非成员函数形式重载的运算符函数原型中,正确的是
A.Value operator+(Value v, int ;
B.Value operator+(Value v=value, int ;
C.Value operator+(Value v, int i=0);
D.Value operator+(Value v=value, int i=0);
答案
参考答案:B
解析: 类名operator+(类名String & s1,类名String & s2)。