KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 LAB 6 – INHERITANCE - POLYMORPHISM Implement the following classes in Java. Write a main class to test your program. In the main class: display the list of all employees in the organization with their attributes. Count and display the number of the Managers with their allowance. class Teacher:• Allowance( ) Double: Return the Allowance based on the following rule: if the Qualification = “Phd“ return Salary * 65%. if the Qualification = “Master“ return Salary * 40%.
This is the end of the preview.
access the rest of the document.