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 return 12.00 * hours def full_time_wage(self, hours): return super(PartTimeEmployee, self).calculate_wage(20.00) milton = PartTimeEmployee("vivek") milton.full_time_wage(10.00)
return super(PartTimeEmployee, self).calculate_wage(20.00)
why do you use
20.00? we should calculate the wage for the numbers of
hours worked. Use
hours (the method parameter)
If you need more help, please tell me exactly what exercise you are at
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.