You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
17 lines
234 B
Python
17 lines
234 B
Python
# test super with multiple inheritance
|
|
|
|
class A:
|
|
def foo(self):
|
|
print('A.foo')
|
|
|
|
class B:
|
|
def foo(self):
|
|
print('B.foo')
|
|
|
|
class C(A, B):
|
|
def foo(self):
|
|
print('C.foo')
|
|
super().foo()
|
|
|
|
C().foo()
|