Python - Inheritance and Code Reuse
What will be the output of this code?
class Animal:
def sound(self):
print('Animal sound')
class Dog(Animal):
def sound(self):
super().sound()
print('Bark')
d = Dog()
d.sound()