So, I got the right answer, but I don't understand the difference between the two and why one works and the other doesn't.
class PartTimeEmployee(Employee): def __init__(self, hours): self.hours = hours return hours * 12.00
And not this?
class PartTimeEmployee(Employee): def calculate_wage(self, hours): PartTimeEmployee.calculate_wage = employee.calculate_wage self.hours = hours wage = PartTimeEmployee.hours * 12.00 return wage
What does the
__init__ do? Like, I know it's short for "initialize", but I'm a total derp.