14. This Looks Like a Job For


#1



https://www.codecademy.com/courses/python-intermediate-en-WL8e4/2/4?curriculum_id=4f89dab3d788890003000096#



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)


#2

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")

#3

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