Java, Encapsulation, Programming, Software Development, Technology.
return name; } public void setName(String name) { this.name = name; } public int getEmpId() { return empId; } public void setEmpId(int empId) { this.empId = empId; } } public class Driver { public static void main(String[] args) { Employee employee = new Employee(); employee.setEmpId(100);