This repository contains a comprehensive Jupyter Notebook covering all fundamental and advanced concepts of Object-Oriented Programming (OOP) in Python — with clean, beginner-friendly examples.
-
complete_oop_python.ipynbA well-structured notebook that teaches Python OOP step by step.
- Class & Object
- Attributes
- Methods
- Constructor (
__init__)
-
Inheritance:
- Simple
- Multiple
- Multilevel
- Hierarchical
- Hybrid
-
Polymorphism
-
Encapsulation
-
Abstraction
-
Method Overriding
-
Method Overloading (Python-style)
-
Decorators
-
Dunder Methods (
__str__,__repr__) -
Access Modifiers:
- Public
- Protected (
_var) - Private (
__var)
-
Download the
.ipynbfile -
Open it in:
- Google Colab
- Jupyter Notebook
- VS Code with Jupyter extension
-
Run cell by cell and explore each topic
- Beginners learning OOP in Python
- College / university students
- Teachers looking for an OOP teaching resource
- Interview preparation
Abdul Rehman Makki
AI Engineer & Data Analyst | Trainer | GitHub: @Abdulrehman1121