Override problem


Replace this line with your 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 calculted_wage(self,hours):
        self.hours = hours
        return hours*12.00


i dont thnk i understand the concept and also the error that i saying that overide did not happen so please help me out asap!!!!!!!! please


Hi, @pymaster39748 ,

To successfully override a method in the parent class, the overriding version of the method in the child class must have the exact same name as the original. Check the spelling.


ooops !!!!!!!

it has worked !!!! thanks


calculate_wage and calculted_wage are not spelled identically.

Edit: The user has resolved the problem. :slight_smile: