filmov
tv
Java Encapsulation - Java tutorial - w3Schools - Chapter 31 English

Показать описание
The meaning of Encapsulation, is to make sure that "sensitive" data is hidden from users. To achieve this, you must:
declare class variables/attributes as private
provide public get and set methods to access and update the value of a private variable.
declare class variables/attributes as private
provide public get and set methods to access and update the value of a private variable.