what is the use of encapsulation in java code example
Example: what is 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.
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.