Animal Inheritance
Medium📝 Description
Implement inheritance with base Animal class and Dog/Cat subclasses
Input Format
Animal type and name
Output Format
Appropriate animal sound
Constraints
Support Dog and Cat types
🔍 Sample Input
Dog Buddy
✅ Sample Output
Buddy says Woof!
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run