Python - Inheritance and Code Reuse
What will be the output of this code?
class Animal:
def sound(self):
return "Some sound"
class Cat(Animal):
def sound(self):
return "Meow"
pet = Cat()
print(pet.sound())