Reference Number
A546857
Description
It means wrapping up data and code together in a single unit to enhance the program's security.To create a fully encapsulated class we just to make the data of all members of the class private.It provides a method to achieve data hiding.Here Getter and Setter method is used to access the data from the class.Getter and Setter methods give access to read and write only.
for more free learning visit us at:
https://quipoin.com/view/Java/Encapsulation
for more free learning visit us at:
https://quipoin.com/view/Java/Encapsulation
Country
India
State/Region/Province
Karnataka
City
Bengaluru
ZIP code
560001
- 247 Views
-
View QR Code
- Report Listing Cancel Report
-
- Current rating: 0
- Total votes: 0