Answers for "super class python 3"

5

how to get the parent class using super python

class Foo(Bar):

    def __init__(self, *args, **kwargs):
        # invoke Bar.__init__
        super().__init__(*args, **kwargs)
Posted by: Guest on August-13-2020
0

python3 call parent constructor

super(Instructor, self).__init__(name, year)
Posted by: Guest on September-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language