Slick V3.3 manual 38. C++ Refactoring Encapsulate Field

Models: V3.3

1 568
Download 568 pages 2.03 Kb
Page 229
Image 229

C++ Refactoring

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

207

Page 229
Image 229
Slick V3.3 manual 38. C++ Refactoring Encapsulate Field