Theory ofIntelligence
← PRACTICE/
Easy
Python• OOP

Animal Kingdom

Create a base Animal class with methods eat() and sleep().

Subclasses: Mammal, Bird, Fish with specific behaviors (e.g., Bird can fly()).

Use polymorphism to make all animals perform a daily routine.

OOP Focus: Method overriding.

Note: This is statement-only in the current Practice version; stdout should be empty.

Sample Test Verification
1 Test Case
Statement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)