Often I want to create member variables that are modifiable by the class, but unmodifiable by other outside classes. The way I do this is by making the member private, and then making a public getter function. This seems like extra work. Is there a simpler way of doing this?