14 This looks like a job for


#1

I'm getting the following error:

TypeError: unbound method full_time_wage() must be called with PartTimeEmployee instance as first argument (got int instance instead)

This is my code:

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):
        return super(Employee,self).calculate_wage(hours)

milton = PartTimeEmployee("Milton")

print PartTimeEmployee.full_time_wage(10)

#2

try to change this part inside the PartTimeEmployee class:

def full_time_wage(self,hours):
(TAB)self.hours = hours
(TAB)return super(PartTimeEmployee,self).calculate_wage(hours)
milton = PartTimeEmployee("Milton")
print milton.full_time_wage(10)