Encapsulate Field
Generates get and set functions for the specified variable and makes that variable private. All references
to the variable are replaced with references to the getter or setter, as appropriate.
Figure 6.38. C++ Refactoring: Encapsulate Field
C++ Refactoring
207