Security Issue
Allowing access to the pay field means that any program that can reference c can change pay.
This could be bad . . .
Changing a �sensitive� field like pay should be limited to methods of the class
How to do this in Java?
Previous slide
Next slide
Back to first slide
View graphic version