填空题

在MyClass类的定义中,对赋值运算符:进行重载。请将画线处缺失的部分补充完整。
【13】 MyClass::operator=(const MyClass& rhs)

if (this==&rhs) return *this;
value = rhs.value;
return *this;

【参考答案】

MyClass&