Python - Polymorphism and Dynamic Behavior
What will be printed when this code runs?
class X:
def info(self):
print('Info from X')
class Y(X):
def info(self):
print('Info from Y')
obj = Y()
obj.info()