ungleich-learning-circle/kjg/python-the-hard-way/e44a.py
2020-06-17 22:48:58 +09:00

13 lines
174 B
Python

class Parent(object):
def implicit(self):
print("PARENT implicit()")
class Child(Parent):
pass
dad = Parent()
son = Child()
dad.implicit()
son.implicit()