# EmployeeHierarchy Example # Illustrate how inheritance works: # Person < Employee < Executive # An Executive is an Employee with a bonus. from person import Person from employee import Employee from executive import Executive p = Person("Alice", "F", 11) print(p) emp = Employee("Brandon", "M", 31, 1111, 75000.0) print(emp) execut = Executive("Rita", "F", 42, 2222, 160000.0, 80000.0) print(execut) print(emp.salary) print(execut.salary)