public class EmployeeP extends Person { double salary; String title; EmployeeP() {} EmployeeP(int age, String name, double salary, String title) { super(age, name); // Call superclass constructor this.salary = salary; this.title = title; } public void giveRaise(double amt) { salary += amt; } public double getSalary() { return salary; } public String toString() { StringBuffer sb = new StringBuffer(); sb.append(super.toString()); sb.append("\nSalary: " + salary); sb.append(" Title: " + title); return sb.toString(); } }