Encapsulation
- 28th Sep 2017
- 0
- 13398
- encapsulation in java with an example what are encapsulation in java What is encapsulation in java ? why do we need encapsulation in java
Encapsulation Process of binding object state(fields) and behaviors(methods) together in a single entity called “Class”. Encapsulation wraps both fields and methods in a class, It will be secured from the outside access. We can restrict the access to the members of a class using access modifiers along with encapsulation. When we create a class in […]