Question: Good Evening, I am working on practice problems for my Python class and I am having trouble with these problems. Question 1 : Implement a

Good Evening, I am working on practice problems for my Python class and I am having trouble with these problems. Question 1:
Implement a superclass Person. Create two subclasses, Student and Instructor, that inherit from
Person. A person has a name and a year of birth. A student has a major, and an instructor has a
salary. Write the constructors, and the _ method for all classes. Create a function that tests
the Student and Instructor classes and methods.
Question 2:
Make a class Employee with a name and salary. Make a class Manager inherit from Employee. Add
an instance variable (data attribute) named _department that stores a string. Supply a method
_ that prints the manager's name, department, and salary. Make a class Executive inherit
from Manager. Supply appropriate methods for all classes. Create a function that tests
these classes and methods.
***Executive has no new data attributes but in the list that the attributes are for the
Executive - ex:
"Executive's name is ....."
Good Evening, I am working on practice problems

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 Programming Questions!