Override problem


#1



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


#2

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


#3

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.


#4

ooops !!!!!!!

it has worked !!!! thanks


#5

calculate_wage and calculted_wage are not spelled identically.

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


#6