Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

def __init__ python not overwrite parrent class

# You must call __init__ for each parent class. 
# The same goes for functions, if you are overriding a function 
# that exists in both parents.

class Child(Parent):
    def __init__(self):
        Parent.__init__(self)
 
PREVIOUS NEXT
Tagged: #def #python #overwrite #parrent #class
ADD COMMENT
Topic
Name
8+1 =