13 lines
174 B
Python
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()
|