Welcome to my collection of Python Object-Oriented Programming (OOP)! In this repository, you'll find practical implementations of various OOP concepts, such as inheritance, class methods, static methods, property decorators, and more. Each project is designed to help understand core OOP principles and how they can be applied to real-world scenarios.
This project demonstrates an inventory management system that allows users to add, remove, update, and display items in an inventory. Key OOP concepts like classes, methods, and CRUD operations are implemented to manage the inventory efficiently.
This file focuses on demonstrating the use of class methods and static methods, specifically showcasing a static method that checks whether a given day is a working day or not. This simple yet effective example highlights how static methods can be used in real-world applications.
Here, I create a Developer
class that inherits from an Employee
class. The Developer
class has its own functionality, such as a custom raise_amount method, while also leveraging the properties and methods of the parent class. This example demonstrates the power of inheritance and instance variables.
A final version of the inheritance system, where CRUD functionalities (Create, Retrieve, Update, Delete) are implemented. The project showcases how subclasses can interact with each other, ensuring efficient data manipulation within a system.
In this file, I explore property decorators (@property
, @setter
, @deleter
), demonstrating how to encapsulate and manage data within a class. This project enhances understanding of getter, setter, and deleter methods to handle attributes in an object-oriented fashion.
- Inheritance
- Static and Class Methods
- Instance Variables
- Property Decorators (Getters, Setters, Deleters)
- CRUD Functionality
- Data Encapsulation
- Python 3.x
- Object-Oriented Programming (OOP) concepts
- Jupyter Notebooks for interactive development
Feel free to explore the code and adapt it for your own use. Pull requests and feedback are always welcome!
Happy coding!