120.0 14/18


#1

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("Milton")
print milton.calculate_wage(10)

Output = 120.0 how come? And how to fix it?


#2

12 * 10 = 120?

Math?


#3

Ty :slight_smile:
Ty :slight_smile:
Ty :slight_smile: