I recently started learning about classes in Python by way of Codeacademy. I am on Lesson 14 of Introduction to Classes, titled “This looks like a job for…” I’m running into the following error with my code:
<bound method PartTimeEmployee.full_time_wage of <PartTimeEmployee object at 0x7f460c8da290>>
My code is as follows:
class Employee(object): def __init__(self, employee_name): self.employee_name = employee_name def calculate_wage(self, hours): self.hours = hours return hours * 20.00 class PartTimeEmployee(Employee): def calculate_wage(self,hours): self.hours=hours return hours*12.00 def full_time_wage(self,hours): return super(calculate_wage,self).method(self,hours) milton = PartTimeEmployee(10) print milton.full_time_wage
Any ideas on how to fix it? Anything you have would be appreciated. Thanks!
Click here to send a direct email to me.