Skip to content

Repository files navigation

Python Object-Oriented Programming (OOP) Concepts

This repository contains Python code examples based on Corey Schafer's excellent Object-Oriented Programming (OOP) YouTube tutorial series. I followed along with each video and implemented the code to reinforce the core concepts of OOP in Python.

📚 Topics Covered

Each file in this repository corresponds to a specific tutorial in the series:

  1. Classes and Instances - Introduction to classes, instance variables, and methods.
  2. Class Variables - Differences between instance and class variables.
  3. Classmethods and Staticmethods - Use cases for @classmethod and @staticmethod.
  4. Inheritance - Creating subclasses and exploring inheritance behavior.
  5. Magic Methods - Customizing behavior using special methods like __repr__, __str__, etc.
  6. Property Decorators - Using @property, @setter, and @deleter to manage attributes cleanly.

📁 File Structure

├── _1_classes_and_instances.py

├── _2_class_variables.py

├── _3_classmethods_and_staticmethods.py

├── _4_inheritance.py

├── _5_special_methods_or_magic_methods.py

├── _6_property_decorators.py

🧠 Purpose

The goal of this project is to:

  • Solidify core OOP principles in Python
  • Build clean and maintainable Python classes
  • Prepare for advanced software development and interviews

🔗 Reference


Feel free to clone or fork this repo and explore the code!

About

This repository contains Python code examples based on Corey Schafer's excellent Object-Oriented Programming (OOP) YouTube tutorial series. I followed along with each video and implemented the code to reinforce the core concepts of OOP in Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages