14. This Looks Like a Job For



class PartTimeEmployee(Employee):
    def full_time_wage(self, hours):
        return super(self, PartTimeEmployee).calculate_wage(hours)
    def calculate_wage(self, hours):
        self.hours = hours
        return PartTimeEmployee.calculate_wage(hours) * 12.00
    milton = PartTimeEmployee(milton)
    print milton.full_time_wage(10)


creating an instance of your class:

milton = PartTimeEmployee(milton)

should be after the object declaration (remove the indent)

also, milton is a name, so it should be a string:

milton = PartTimeEmployee("milton")


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