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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!