ungleich-learning-circle/kjg/python-the-hard-way/e44a.py

14 lines
174 B
Python
Raw Normal View History

2020-06-17 13:48:58 +00:00
class Parent(object):
def implicit(self):
print("PARENT implicit()")
class Child(Parent):
pass
dad = Parent()
son = Child()
dad.implicit()
son.implicit()