Employee Manager Chef Waiter
public abstract class Employee { private String firstName; private String lastName; public Employee(String newFirstName, String newLastName) { this.firstName = newFirstName; this.lastName = newLastName; } public abstract String getTitle(); } public class Manager extends Employee { private int teamSize; public Manager(String newFirstName, String newLastName) { super(newFirstName, newLastName); this.teamSize = 0; } public String getTitle() { return "Manager"; } }