CPlusPlusThings
CPlusPlusThings copied to clipboard
基础进阶-const中的例子7:类中使用const例子有误
public:
...
int add();
...
};
...
int Apple::add(int num)
{
take(num);
return 0;
}
上述有个细节有误,申明和定义不一致~
add() 调用的 take() 是 const 的,估计是原文写错了