class Foo1:
def hi(self, name):
print('Oh hi there %s.' % name)
class Foo2:
def hi(self, name):
print('Hi %s, how ya doing?' % name)
class Bar(Foo1, Foo2):
def hi(self, name):
super(Bar, self).hi(name)
bar = Bar()
bar.hi('John')
Outputs:
Oh hi there John.
How do you access Foo2's super method instead from Bar, other than just swapping the order of "Foo1, Foo2"?