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 hours *= 12.00 return hours # here partoftime overrides empolyee def full_time_wage(self,hours): return super(PartTimeEmployee, self).full_time_wage(hours) milton = PartTimeEmployee("yossef") milton.full_time_wage(10)
what is the wrong here please help sometime here some times i use the attritubes and it work and sometimes it doesnt could somebody explain to me please
Traceback (most recent call last):
File "python", line 19, in
File "python", line 17, in full_time_wage
AttributeError: 'super' object has no attribute 'full_time_wage'