Skip to content

Repository files navigation

Advanced Python OOP: Inheritance, Decorators & Operator Overloading

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.


📌 Repository Breakdown

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__).

🚀 How to Run

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

About

This repository is my practical guide to advanced Python OOP concepts. Through step-by-step code examples, I cover inheritance types, method overriding with super(), class methods, property decorators, and operator overloading.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages