Java Tutorial 43 - Data Field Encapsulation

preview_player
Показать описание
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.
Рекомендации по теме
welcome to shbcf.ru