Super class exercise passed, but output reports an error


I trial&error tried to figure out what arguments am I to put in super method cal, and since I had errors mentioning that 3 arguments are expected and 2 given or sometimes 2 expected and 1 given, I finally tried with just "hours" as argument to see what kind of error I would get. However I now it says I have successfully completed the exercise but the output in the actual window on top right looks like it does not really work.

Here is the output:

<bound method PartTimeEmployee.full_time_wage of >

Not sure what is the problem.

Replace this line with your code. 
Here 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, hours):
        return super(PartTimeEmployee, self).calculate_wage(hours)
milton = PartTimeEmployee("Jack")
print milton.full_time_wage


This call should take an integer parameter like, (5) or any other number.


Oh, ok. Makes sense. The exercise does not explicitly mention it, and I am so caught up in deciphering errors that I lost all common sense :slight_smile:



You're welcome :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.