Java

What is Encapsulation ?

What is Encapsulation ? Encapsulation in java is an important concept, its one of four oops pillar. Encapsulation is process of wrapping code and data together into a single unit. Encapsulation is also known as Data binding and Data Hiding. Advantages of Encapsulation: Data Hiding. Code Flexibility. Code Reusability. Example public class Employee { int […]