Skip to content

Abdulrehman1121/python-oop-notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

📘 Python OOP: Object-Oriented Programming

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.


📂 File Included

  • complete_oop_python.ipynb

    A well-structured notebook that teaches Python OOP step by step.


📌 Topics Covered

✅ Basics

  • Class & Object
  • Attributes
  • Methods
  • Constructor (__init__)

✅ Pillars of OOP

  • Inheritance:

    • Simple
    • Multiple
    • Multilevel
    • Hierarchical
    • Hybrid
  • Polymorphism

  • Encapsulation

  • Abstraction

✅ Advanced OOP Concepts

  • Method Overriding

  • Method Overloading (Python-style)

  • Decorators

  • Dunder Methods (__str__, __repr__)

  • Access Modifiers:

    • Public
    • Protected (_var)
    • Private (__var)

▶️ How to Run

  1. Download the .ipynb file

  2. Open it in:

    • Google Colab
    • Jupyter Notebook
    • VS Code with Jupyter extension
  3. Run cell by cell and explore each topic


📚 Suitable For

  • Beginners learning OOP in Python
  • College / university students
  • Teachers looking for an OOP teaching resource
  • Interview preparation

🧠 Author

Abdul Rehman Makki

AI Engineer & Data Analyst | Trainer | GitHub: @Abdulrehman1121


About

A complete notebook on Object-Oriented Programming in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors