Java, Encapsulation, Programming, Software Development, Technology.
Vikram Gupta empId : 100 salary : 80000 You may have observed in the above program that the setSalary() method has its logic to set the value to salaryvariable. Even if the outer classes try to set the value lower than 60000, it would make it to 60000 as the minimum salary. Why Do We Need