kuroko/test/testClassMethodInherited.krk

11 lines
170 B
Python
Raw Normal View History

class Foo:
@classmethod
def doThing(cls):
print("Called from a",cls)
class Bar(Foo):
pass
Foo.doThing()
Foo().doThing()
Bar.doThing()
Bar().doThing()