circuitpython/tests/basics/class-super.py
2014-02-22 20:25:05 +02:00

14 lines
181 B
Python

class Base:
def meth(self):
print("in Base meth")
class Sub(Base):
def meth(self):
print("in Sub meth")
return super().meth()
a = Sub()
a.meth()