Create classes faculty and adminassistant


Problem

Create a class employee with the following attributes

a) Social Security Number.
b) First name.
c) Last name.
d) Annual Salary.

Your class should have a constructor and set/get methods for all attributes. Set methods should obtain employee data through user input.

Create classes faculty and adminAssistant. Both classes should inherit common attributes from employee. In addition, each class faculty and adminAssistant should contain a method jobDescription that contains a brief description of the position. jobDescription methods for faculty and adminAssistant should override the jobDescription method in employee that displays simply "I am an employee".
Use polymorphism where applicable.

Main module

Instantiate an object from employee and two objects each from faculty and adminAssistant. Display personal data and the job description for each employee. Display the average salary for the two faculty members and the two administrative assistants.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create classes faculty and adminassistant
Reference No:- TGS03242121

Expected delivery within 24 Hours