Executive
Home ] Up ] Secretary ] ExecutiveSecretary ] Manager ] [ Executive ] Programmer ] Test Program ]

 

 

Here's class Executive:

package company;

import java.util.Date;

public class Executive extends Manager
{
    public Executive(String n, double s, Date d, 
                     ExecutiveSecretary sec)
    {
        super(n, s, d, sec);
    }
    
    public void raiseSalary(double byPercent)
    {   
        // Add 20% options bonus 
        double options_bonus = 20.0;
        super.raiseSalary(byPercent + options_bonus);
    }
}

Note the extra bonus in raiseSalary...

 

This page was last modified on 02 October, 2007