super function pyhton code example
Example 1: how to get the parent class using super python
class Foo(Bar):
def __init__(self, *args, **kwargs):
# invoke Bar.__init__
super().__init__(*args, **kwargs)
Example 2: python super
class Square(Rectangle):
def __init__(self, length):
super().__init__(length, length)