Why should a member function that only reads object state usually have a trailing const?

from Classes
C++23 beginner 1 min

Why should a member function that only reads object state usually have a trailing const?

Report an error