Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

encapsulation in java

1-ENCAPSULATION: We can hide direct access to data by using
private key and we can access private data by using getter and
setter method.
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #encapsulation #java
ADD COMMENT
Topic
Name
3+4 =