filmov
tv
Java Tutorial 43 - Data Field Encapsulation

Показать описание
Data Field Encapsulation
- makes data fields to be hidden (protected) from other classes,
- data can be accessed only through the methods of its class.
Visibility Modifiers
- can be used to specify the visibility of a class and its members (data fields).
- can be private, _(if no modifier is used), protected and public.
- makes data fields to be hidden (protected) from other classes,
- data can be accessed only through the methods of its class.
Visibility Modifiers
- can be used to specify the visibility of a class and its members (data fields).
- can be private, _(if no modifier is used), protected and public.