previous | start | next

## Modeling Specialization

- Start with simple `Employee` class
  `public class Employee
  {
  public Employee(String aName) { name = aName; }
  public void setSalary(double aSalary) { salary = aSalary; }
  public String getName() { return name; }
  public double getSalary() { return salary; }
  private String name;
  private double salary;
  }`
- `Manager` is a subclass

previous | start | next