Here’s how to call a superclass method in python:

Example

                                        

class Parent:
    def show(self):
        print("Inside Parent class")
 
class Child(Parent):
      
    def display(self):
        print("Inside Child class")

obj = Child()
obj.display()
obj.show()

Output

Inside Child class
Inside Parent class

Suggest An Answer

No suggestions Available!