class ParentClass:
    def print\_test(self):
        print("Parent Method")

class ChildClass(ParentClass):
    def print\_test(self):
        print("Child Method")
        # Calls the parent's print\_test()
        super().print_test() 

>>> child_instance = ChildClass()
>>> child_instance.print_test()
Child Method
Parent Method
Comments