Semester_2/OOP/Lab_06/Exercise2/Staff.java
<reponame>anhkhoakz/TDTU<gh_stars>0public class Staff extends Person {
    private String school;
    private double pay;

    public Staff(String name, String address, String school, double pay) {
        super(name, address);
        this.school = school;
        this.pay = pay;
    }

    public String getSchool() {
        return this.school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public double getPayl() {
        return this.pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

    @Override
    public String toString() {
        return "Staff[name = " + getName() + ", address = " + getAddress() + ", school = " + this.school + ", pay = "
                + this.pay + "]";
    }

}
