1
Your task
Define the target interface
Recreate the MediaPlayer contract and the already-compatible MP3 player.
Define the unified play operation expected by the client.
Make Mp3Player implement that target.
Keep its format-specific playMp3 operation behind the target method.
media_player.py
Your draft · saved locally
1
2
3
4
5
Structural feedback only—your code stays in this browser and is not executed.