An employee is as described in Exercises P3.2 and P3.3, which you have already done. Implement two subclasses of Employee, one called Manager and one called Worker. Write a method getRetirement that returns the amount stored in the retirement account. Write a test program to test the various Class definitions. Add static methods to Manager and Worker that allow the test program to set the retirement fee for a manager and a union fee for a worker.
Person are the same.
Assume that no two people have the same name. Use it on two Manager objects in your test program. Override the toString method to print an object of the type Employee. Test your method.