Java, Encapsulation, Programming, Software Development, Technology.
salary; } public void setSalary(long salary) { //if salary is less than zero the set min salary. if (salary < 60000){ this.salary=60000; }else{ this.salary = salary; } } } public class Driver { public static void main(String[] args) { Employee employee = new Employee(); employee.setEmpId(100);