The const keyword
So las semester we learned that const could be applied to an argument, but this semester our book has it with function prototypes, like:
bool isEmpty() const;
int getLength() const;
My questions:
1. I take it const in the context above refers to a return value that has to be constant (i.e. immutable)?
2. Since "bool" and "int" refer to return values and as I understand it, "const" does too, why isn't it:
const bool isEmpty();
or
int const getLength();
In other words, does the position of the const matter?
