How do you call a superclass method in Python?
Here’s how to call a superclass method in python:
BY Best Interview Question ON 19 Jun 2020
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