What does the const qualifier on a member function declare?
- A The return value cannot be modified
- B The function does not modify the object's observable state and can be called on const objects
- C The function cannot be overridden
- D The parameters are constant
Answer
The function does not modify the object's observable state and can be called on const objects
Omitting const on a non-mutating method is the most common const-correctness failure, because callers holding a const reference cannot then use it.





