Oops, try again. milton.full_time_wage(0) caused the following exception: calculate_wage() takes exactly 2 arguments (1 given)
Don't derived classes have access to functions of the superclass already? (Because they are derived?)
Why do we need a separate super function?
class Employee(object): """Models real-life employees!""" def __init__(self, employee_name): self.employee_name = employee_name def calculate_wage(self, hours): self.hours = hours return hours * 20.00 # Add your code below! class PartTimeEmployee(Employee): def calculate_wage(self,hours): self.hours=hours return hours*12.00 def full_time_wage(self,hours): return super(PartTimeEmployee,self).calculate_wage() milton=PartTimeEmployee("Milton John") print milton.calculate_wage(10)