Traceback (most recent call last):
File "python", line 11, in
File "python", line 21, in PartTimeEmployee
AttributeError: 'function' object has no attribute 'full_time_wage'
I have been stuck at this exercise for a few days, and I was looking for an answer from the forums for it. Unfortunately all the topics were over one year old, so the exersice is probably updated and the codes from these topics didn't somehow match.
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(hours) def milton(): milton = PartTimeEmployee("smthng") print milton.full_time_wage(10)