After reading this, it is my understanding that declaring a method as const
prevents it from accidentally modifying the class's member variables.
- Are
const
methods commonly used? - Should they be used for everything that shouldn't modify member variables?