14/19 This looks like a job for... STUCK


#1



14. This Looks Like a Job For...

14/19. This Looks Like a Job For...

I got the following errors; "Oops, try again. Your code raised an exception, have a look at the console window for the error message!"
Traceback (most recent call last):
File "python", line 21, in
TypeError: full_time_wage() takes exactly 2 arguments (1 given)


I expected it to super call (not sure if correct terminology)


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).method(args)
        
milton = PartTimeEmployee("aa")
print milton.full_time_wage()


#2

Missing argument, hours => (10)

.method(args) => .calculate_wage(hours)


#3

Thank you! Sorry for slow reply - was busy with exams


#4

I trust you did well?


#5

Hopefully - worked really hard, thanks for asking