Social Media Post System
HardModel 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.
Loading editor...
Output
Run or submit to see output.