Lab9_PythonObjectOrientedProgramming
Lab9_PythonObjectOrientedProgramming
2. Add:
4.1. Print each object to see the output of the __str__ method.
4.2. Test the getters of the employee class by displaying the attributes’ values, and
then the setters for example: modify the employee object’s salary using the setter and
use the __str__ method to display the new salary.
4.2. Call get_role_info() on each object to see the different outputs and understand
how polymorphism works.
Testing: