Skip to content

Wobbly1212/Object-Oriented-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Object-Oriented Python Projects

A collection of OOP exercises in Python demonstrating classes, inheritance, polymorphism, encapsulation, and composition through practical, standalone projects.

Projects

1. Gym Management System

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.py

2. Blackjack

Console-based Blackjack card game using Card, Deck, and Hand classes. Demonstrates composition and encapsulation.

cd Object-Oriented-Beginner-Projects/blackjack
python blackjack_game.py

3. Let's Make a Deal (Monty Hall Problem)

Simulation 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.py

4. Course Management System

Simplified model of courses, students, enrollment, and grading. Demonstrates class relationships and data encapsulation.

cd Object-Oriented-Beginner-Projects/CourseManagementSystem
python CourseManagementSystem.py

Getting Started

Prerequisites

  • Python 3.6+

Installation

git clone https://github.com/Wobbly1212/Object-Oriented-Projects.git
cd Object-Oriented-Projects

Navigate to any project folder and run the script directly.

Project Structure

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

Key Concepts

  • Classes & Objects — Custom classes encapsulate logic and data
  • Inheritance — Parent-child relationships (e.g., Membership base class)
  • Polymorphism — Different classes implement shared interfaces differently
  • Encapsulation — Internal data accessed through methods
  • Composition — Objects built from other objects (Deck from Cards)

Author

Diako Darabi

License

This project is licensed under the MIT License.

About

Collection of object-oriented Python projects — Blackjack, Gym Management, Monty Hall, and Course Management

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages