What I don't get is how can the Salary be a subclass of Employee. I think Employee has a Salary and not Salary is derived from Employee.

Just search the web for UML diagrams and read the...