9.11每日疑惑

104 阅读1分钟

1.const成员函数有什么用呢?

又不能调用non-const函数,又不能改变成员变量

2.friend友元函数没有this指针,因为不是类本身的函数。

3.Operator overloading操作符重载