Question: 2. Using python create a generic superclass that represents an Employee. This class has the following subclasses and attributes: class Employee: Attributes: self.fname,self.Iname,self.yrs_exp,self.phone_number class Manager

2. Using python create a generic superclass that represents an Employee. This class has the following subclasses and attributes: class Employee: Attributes: self.fname,self.Iname,self.yrs_exp,self.phone_number class Manager (Employee): Attributes: self.id, self. dept_type =(HR,IT,ADMIN,FACILITIES), self.qualification(UNDERGRADUATE,POSTGRADUATE) class StaffMember (Employee): Attributes: self. staffid, self. employment_type =(HOURLY, SHIFT), self. salary class Temporary (StaffMember): Attributes: self.sub_dept,self. hourly_rate, self. transport_cost Write a program to represent the base class (superclass) and subclasses shown by the given code. Writea separate test module where 3 instances of the class are created, and the methods are tested by givingthe required details and printing the details for each class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
