示例#1
0
 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
示例#2
0
 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)
示例#4
0
 def __init__(self, name, ethnicity, wealth):
     print("Child Constructor called")
     Parent.__init__(self, name, ethnicity)
     self.wealth = wealth
示例#5
0
    def __init__(self):
        Parent.__init__(self)

        self.code = 0
        self.name = 'child'
示例#6
0
 def __init__(self):
     Parent.__init__(self, "vanhung")
     print 'child'