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 :
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 :
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
