ungleich-learning-circle/youngjin.han/python-the-hard-way/ex44a.py

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()