Question

What will be the output of the following code snippet? class Animal:     def sound(self):         return "Some sound" class Dog(Animal):     def sound(self):         return "Bark" dog = Dog() print(dog.sound())

A Some sound
B Bark
C Dog
D None
E Animal
Practice Next

Relevant for Exams:

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)