circuitpython/tests/basics/class-super.py

14 lines
181 B
Python
Raw Normal View History

2014-02-22 11:54:27 -05:00
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()