What is the difference between the two?
A super class having explore() and an inheriting class having the same method, Is this overriding or polymorphism?
I am clear with the difference b/w overriding and overloading, but the polymorphism and overriding seems the same. Or are they?
class A:
def explore(self):
print("explore() method from class A")
class B(A):
def explore(self):
super().explore() # calling the parent class explore() method
print("explore() method from class B")
b_obj = B()
b_obj.explore()