Python - Polymorphism and Dynamic Behavior
What will be the output of the following code?
class Bird:
def fly(self):
print('Flying')
class Airplane:
def fly(self):
print('Jet flying')
objects = [Bird(), Airplane()]
for obj in objects:
obj.fly()