Given the following definitions:
const int x = 17;
class A
{
public:
A( );
A(int x);
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?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here