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 hours * 12.00 bkt=Employee(1) twy=PartTimeEmployee(2) bkt.calculate_wage(twy)
what is wrong with this override.it's showing
Traceback (most recent call last):
File "python", line 17, in
File "python", line 8, in calculate_wage
TypeError: unsupported operand type(s) for *: 'PartTimeEmployee' and 'float'