public class Salaried extends Worker { // All we need to do is call the Worker initial-value constructor // using the same name and rate of pay. public Salaried(String s, double r) { super(s, r); } // Salaried workers are paid for 40 hours work regardless of how many // hours actually on the job. public double computePay(int hours) { return 40 * this.getRate(); } }