A collection of OOP exercises in Python demonstrating classes, inheritance, polymorphism, encapsulation, and composition through practical, standalone projects.
Models a gymnasium with tiered membership plans (Basic, Three-Month, Annual), customer management, and room-access cost logic. Demonstrates inheritance and polymorphism.
cd Object-Oriented-Beginner-Projects/Gymnasium
python gymnasium.pyConsole-based Blackjack card game using Card, Deck, and Hand classes. Demonstrates composition and encapsulation.
cd Object-Oriented-Beginner-Projects/blackjack
python blackjack_game.pySimulation of the classic Monty Hall problem — choose a door, host reveals a goat, decide whether to switch. Demonstrates OOP game logic design.
cd Object-Oriented-Beginner-Projects/lets_make_a_deal
python lets_make_a_deal.pySimplified model of courses, students, enrollment, and grading. Demonstrates class relationships and data encapsulation.
cd Object-Oriented-Beginner-Projects/CourseManagementSystem
python CourseManagementSystem.py- Python 3.6+
git clone https://github.com/Wobbly1212/Object-Oriented-Projects.git
cd Object-Oriented-ProjectsNavigate to any project folder and run the script directly.
Object-Oriented-Projects/
├── Object-Oriented-Beginner-Projects/
│ ├── Gymnasium/ # Gym membership system
│ ├── blackjack/ # Blackjack card game
│ ├── lets_make_a_deal/ # Monty Hall simulation
│ └── CourseManagementSystem/ # Course & student management
├── LICENSE
└── README.md
- Classes & Objects — Custom classes encapsulate logic and data
- Inheritance — Parent-child relationships (e.g.,
Membershipbase class) - Polymorphism — Different classes implement shared interfaces differently
- Encapsulation — Internal data accessed through methods
- Composition — Objects built from other objects (Deck from Cards)
Diako Darabi
This project is licensed under the MIT License.