When when the child class overrides the method of the parent class we can say that the child method has overridden the method of the parent class
class Parent():
def __init__(self):
self.value = "Inside Parent"
def show(self):
print(self.value)
class Child(Parent):
def __init__(self):
self.value = "Inside Child"
def show(self):
print(self.value)
if __name__ == '__main__:
obj1 = Parent()
obj2 = Child()
obj1.show()
obj2.show()