1  public class Manager extends SalariedEmployee
  2  {
  3     private double weeklyBonus;
  4  
  5     /**
  6        Constructs a manager with a given name, annual salary and weekly bonus.
  7        @param name the name of this employee
  8        @param salary the annual salary
  9        @param bonus the weekly bonus
 10      */
 11     public Manager(String name, double salary, double bonus)
 12     {
 13        super(name, salary);
 14        weeklyBonus = bonus;
 15     }
 16  
 17     public double weeklyPay(int hours)
 18     {
 19        return super.weeklyPay(hours) + weeklyBonus;
 20     }
 21  }
 22  
 23