Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the parent class using super python

class Foo(Bar):

    def __init__(self, *args, **kwargs):
        # invoke Bar.__init__
        super().__init__(*args, **kwargs)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parent #class #super #python
ADD COMMENT
Topic
Name
8+1 =