| Field Encapsulation |
Article Index for Field |
Limousines in Field |
Website Links For Field |
Information AboutField Encapsulation |
| CATEGORIES ABOUT FIELD ENCAPSULATION | |
| object-oriented programming | |
with the same example using encapsulation: In the first example a user is free to use the public ''name'' variable however they see fit - in the second however the writer of the class retains control over how the private ''name'' variable is read and written by only permitting access to the field via its ''getName'' and ''setName'' methods. |
|
|