
If a Python subclass defines a method with the same name as the parent, the parent’s method isn’t invoked:
class Parent:
def x(self):
return 'x from Parent'
class Child(Parent):
def x(self):
return 'x from Child'
c = Child()
c.x() # 'x from Child'
