Welcome to my repository on advanced Object-Oriented Programming (OOP) concepts in Python. This project focuses on code reusability, class hierarchy design, special methods, and Pythonic decorators.
| File Name | Topic | Key Focus |
|---|---|---|
01_inheritance.py |
Single Inheritance | Basic parent-child class relationships and method inheritance. |
02_multiple_inheritance.py |
Multiple Inheritance | Deriving a class from multiple parent classes. |
03_multilevel_inheritance.py |
Multilevel Inheritance | Multi-tiered inheritance chains across multiple levels of classes. |
04_super.py |
super() Method |
Accessing parent class methods and constructors cleanly. |
05_class_methods.py |
Class Methods (@classmethod) |
Working with class-bound methods and cls parameters. |
06_property_decorators.py |
Property Decorators (@property) |
Implementing getters, setters, and deleters for managed attributes. |
07_operator_overloading.py |
Operator Overloading | Customizing built-in operators using dunder methods (e.g., __add__, __str__). |
- Clone the repository:
git clone [https://github.com/adnan-s16/Types-of-Inheritance---Super-Method--Class-Method--Property-Decorators-a.git](https://github.com/adnan-s16/Types-of-Inheritance---Super-Method--Class-Method--Property-Decorators-a.git) cd Types-of-Inheritance---Super-Method--Class-Method--Property-Decorators-a