Tutorial by Topics: getters

This article discusses getters and setters; the standard way to provide access to data in Java classes.
Setters and getters are object properties that call a function when they are set/gotten. An object property cannot hold both a getter and a value at the same time. However, an object property can hold both a setter and a getter at the same time.

Page 1 of 1