各位高手請指點 class的簡單題目
definitions:const int x = 17;
class A
{
public:
A();
A(int n);
int f() const;
int g(const A& x);
private:
int i;
};
問:
Each of the three const keywords is a promise to the compiler that the compiler will enforce.
What is the promise in each case?