0
What the purpose of const keyword for function in C++?
I do not get the goal of using const keyword for defining const function in class .
1 Answer
+ 2
It prevents you from making any modifications to class variables and calling other functions that are not const