Theory ofIntelligence
← PRACTICE/
Medium
Python• OOP

Media Player

Create a base Media class with methods play() and pause().

Subclasses: Audio and Video with extra features (e.g., Audio controls volume, Video controls brightness).

Create a playlist using polymorphism.

OOP Focus: Overloading and overriding patterns (as supported by your language).

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)