This project is a Python implementation of a basic social network, developed as part of an Object‑Oriented Programming course (OOP EX2).
It demonstrates object‑oriented design principles including classes, encapsulation, and interactions between objects.
- Object‑Oriented Programming (OOP) in Python
- Class design and interaction
- Modeling real‑world entities (Users, Posts)
- Basic simulation of social network behavior
main.py User.py SocialNetwork.py Post.py auto_check.py output.txt image1.jpg
main.py– Entry point for running the simulationUser.py– Defines the User classSocialNetwork.py– Defines the SocialNetwork class and logicPost.py– Defines the Post classauto_check.py– Script for automated tests / validationoutput.txt– Sample output
- Python 3
- Object‑Oriented Programming fundamentals
Run the main program:
python3 main.pySee documentation in code comments or sample output in output.txt.
Sample results from a run are included in output.txt and show:
User creation Post creation Interactions between users
This project demonstrates:
- Clean OOP design in Python
- Modeling of real‑world systems in code
- Use of classes, methods, and object interaction