Question OOP-INH-0009
MediumWhat is the output of this code?
class Animal:
def speak(self):
return "Some sound"
class Dog(Animal):
def speak(self):
return super().speak() + " Woof"
print(Dog().speak())
- A.
Woof
- B.
Some sound
- C.
Sign up free to see the answer and a step-by-step explanation.