Theory ofIntelligence
← PRACTICE/
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 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)