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)
Can someone explain why
hours is needed inside of the
super(PartTimeEmployee, self).calculate_wage(hours) line?
I somewhat understand that
calculate_wage needs two args,
hours – the super call tells
calculate_wage which class to refer to (parent class), so the
hours inside parenthesis is simply needed to complete the method?