Hard
Python• OOP
Social Media Post System
Model User, Post (TextPost, ImagePost, VideoPost), Comment, and Like.
Use inheritance for post types and an observer-like approach for notifications on interactions.
Focus on SOLID principles while keeping the model extensible.
OOP Focus: Complex relationships and SOLID principles.
Note: This is statement-only in the current Practice version; stdout should be empty.
Sample Test Verification
1 Test CaseStatement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Pyodide v0.26.4 WASM
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)