/** Example from Core Java 8th edition by Horstmann and Cornell */ public class Employee extends Person { public Employee(String n, double s){ super(n); salary = s; } public double getSalary() { return salary; } // abstract method defined public String getDescription() { return "an employee with a salary of " + salary ; } public void raiseSalary(double byPercent){ double raise = salary * byPercent / 100 ; salary += raise ; } private double salary; }