public class Employee extends Person { // inherits age, eat(), talk() from Person // adds new instance variable "salary" that Person doesn't have public int salary; // overrides sleep() from Person public void sleep() { System.out.println("Zzzz... Hardly working..."); } // overrides toString from Person public String toString() { return "Employee: age " + this.age + ", salary " + this.salary; } // adds new method work() that Person doesn't have public void work() { System.out.println("Workin' for the man."); } }