封装的优点 最后再仔细看一下非常简单的getName、getSalary和getHireDay方法 public double getSalary() { return salary; } public LocalDate getHireDay() { return hireDay; } public void raiseSalary(double byPercent) { double rais…
琳琅阁
封装的优点 最后再仔细看一下非常简单的getName、getSalary和getHireDay方法 public double getSalary() { return salary; } public LocalDate getHireDay() { return hireDay; } public void raiseSalary(double byPercent) { double rais…