Answer the following question. 1. What is the concept of Encapsulation in Java? 2. Cite…
- User
Answer the following question.
- What is the concept of Encapsulation in Java?
- Cite some advantages of Encapsulation.
- Cite a sample program of Encapsulation.
- Assistant
-
The concept of Encapsulation in Java is a mechanism that binds together the data and methods acting on the data, keeping both safe from outside interference and misuse. It allows the internal representation of an object to be hidden from the outside world.
-