This look like a job for


the result is wrong ?!

i excepect the correct answer is 200

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("abdelkader")
print milton.calculate_wage(10)


call the full_time_wage method. It calls the super calculate_wage method.


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