Tag: encapsulation
-
Encapsulation in java
What is Encapsulation in Java? Encapsulation in Java is a mechanism to wrap up variables(data) and methods(code) together as a single unit. It is the process of hiding information details and protecting data and behavior of the object. It is one of the four important OOPs concepts. Data Hiding in Java Data Hiding in Java…