14. This Looks like a job for


#1

I was able to get this correct, but my output isn’t what I would have expected and I can’t figure out why. Can someone help me understand?

This was my output: <PartTimeEmployee object at 0x7f9abbc69090>

Here is my code:
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
def full_time_wage(self, hours):
return super(PartTimeEmployee, self).calculate_wage(hours)

milton = PartTimeEmployee(“10”)
print milton


#2

What did you expect your output to be then?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.