Encapsulation in Java , Difference between Encapsulation and Abstraction
What is Encapsulation in Java? Encapsulation in java is a principle by which data is hidden in an Object and can be accessed by the outside world only through accessor methods. The simplest way to understand encapsulation is to look at the basic data types such as Integer or Double. These data types hide the … Read more