Question: help me solve this question, please 1. Create a Python class Person with attributes: Firstname and Lastname of type String. 2. Create a constructor that

help me solve this question, please
help me solve this question, please 1. Create a Python class Person

1. Create a Python class Person with attributes: Firstname and Lastname of type String. 2. Create a constructor that initialize all attributes of Person 3. Create a display0 method that displays the name and age of an object created via the Person class. 4. Create a child class Employee which inherits from the Person class and which also has a salary attribute of type Float. 5. Create a constructor to initializing all attributes of Employee by calling the constructor of the super class 6. Create a method displayEmployee() that displays the Firstname, Lastname and salary of an object created via the Employee class. 7. Create an employee object via an instantiation on the Employee class and then test the displayEmployee() method. 8. Create SalariedEmployee class which inherit from Employee Class and which also has a Bonus and Deductions attributes of type Float. 9. Create a constructor to initializing all attributes of SalariedEmployee by calling the constructor of its super class 10. Define a method GetSalary() that return (salary+Bonus-Deductions) 11. Create an instance of the SalariedEmployee as following: Emp1('Brown','Smith',10000,500,100) 12. Print the salary of Emp1 by calling GetSalary() method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets solve this problem stepbystep according to the requirements 1 Create a Person class python class Person def initself Firstname Lastname selfFirst... View full answer

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!