def __init__(self, last_name, eye_color, number_of_toys): """Inits child with last_name and eye_color.""" # self.last_name = parent.last_name # self.eye_color = parent.eye_color print("bow wow chicka chicka ...") Parent.__init__(self, last_name, eye_color) self.number_of_toys = number_of_toys
def __init__(self, name, age, qualification): Parent.__init__(self, name, age, qualification)
def __init__(self, name, ethnicity, wealth): print("Child Constructor called") Parent.__init__(self, name, ethnicity) self.wealth = wealth
def __init__(self): Parent.__init__(self) self.code = 0 self.name = 'child'
def __init__(self): Parent.__init__(self, "vanhung") print 'child'