Someone holler back at me!!
Constants cannot or should not be modified, right?
Let's suppose you have
class Increment {
public :
Increment(int c=0, int 1=1); // non-const constructor
....
....
......
private:
int count;
const int increment; //const data member
};
Increment::Increment(int c, int i)
: increment (i) // initialize constant member
{count =c;}
How is this contstant being modified?
by and to what?