It looks like you have the right idea, in C ++ const by the method of the object means that the method cannot change the object.
For example, this will not be allowed:
class Animal {
int _state = 0;
void changeState() const {
_state = 1;
}
}
source
share