Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Object-Oriented Programming (OOP) in Python
Rating: 4.0 out of 5(2 ratings)
1,185 students

Object-Oriented Programming (OOP) in Python

Move beyond basic scripts: master classes, encapsulation, dunder methods, inheritance, and polymorphism in Python.
Created bySyed Mohiuddin
Last updated 9/2019
English
English [Auto],

What you'll learn

  • Set up a Python development environment on Windows by installing Python and PyCharm and learning different ways to run Python programs.
  • Understand the core fundamentals of Object-Oriented Programming (OOP) and how to define classes and instantiate multiple objects in Python.
  • Initialize and manage object state using the __init__() method, the self parameter, instance variables, and class variables.
  • Build and structure class behaviors using instance methods, @classmethod decorators, and @staticmethod decorators.
  • Implement data encapsulation and controlled attribute access using private variables, private methods, getter/setter accessor methods, and the @property decorat
  • Utilize advanced class features including class destructors, inner classes, and passing objects as arguments to methods.
  • Customize object representations and write clear code documentation using the __str__() dunder method and class docstrings.
  • Inspect and optimize classes using built-in functions (dir, type, help) and built-in class attributes such as __dict__, __slots__, __bases__, and __doc__.
  • Design scalable class hierarchies using single, multi-level, hierarchical, multiple, and hybrid inheritance.
  • Manage parent-child class interactions, access modifiers (private and protected variables), and the super() function in inheritance.
  • Understand and navigate Python's Method Resolution Order (MRO) and built-in functions used to determine inheritance relationships.
  • Implement polymorphism in Python through method overriding and Duck Typing with classes and functions.

Course content

5 sections • 59 lectures • 3h 59m total length
  • Welcome to Object-Oriented Programming in Python!2:45

    Get an overview of the course curriculum, understand what you will build, and see how mastering Object-Oriented Programming will level up your Python coding skills.

  • Installing Python on Windows & Verifying Your Setup6:52

    Learn how to download and install the latest version of Python on Windows, configure your system PATH properly, and verify your installation via the command prompt.

  • Multiple Ways to Execute Python Programs Like a Pro13:10

    Explore different methods for running Python scripts, including the interactive Python shell, the command prompt/terminal, and dedicated code editors.

  • Installing and Configuring PyCharm on Windows8:50

    Follow a step-by-step walkthrough to download, install, and set up the PyCharm IDE on Windows so you are ready to write and debug OOP code efficiently.

  • How to Get Help & Make the Most of This Course3:08

    Discover the best practices for following along with the coding exercises, troubleshooting common errors, and asking questions effectively in the Q&A section.

Requirements

  • Basic familiarity with core Python syntax and programming fundamentals (such as variables, data types, and functions), as the course jumps directly into Object-Oriented Programming concepts after environment setup.
  • A Windows PC with administrative access and an internet connection to install Python and the PyCharm IDE (no prior OOP experience or pre-installed software is required, as setup is covered step-by-step in the first section).

Description

Master Object-Oriented Programming (OOP) in Python: Write Clean, Scalable, and Production-Ready Code

Are you ready to move beyond writing basic procedural Python scripts and start building structured, maintainable, and professional-grade software? Object-Oriented Programming (OOP) is the backbone of modern Python development, powering everything from web frameworks and data science libraries to enterprise applications. Whether you are a beginner Python programmer looking to level up your skills or a self-taught developer aiming to bridge the gap to real-world software engineering, this comprehensive course takes you from your very first class definition to advanced architectural patterns.

What Makes This Course Different?

Instead of drowning you in abstract theory, this course breaks down every OOP concept into focused, bite-sized, hands-on lessons. You will not just learn what a feature does—you will understand how Python handles it under the hood and when to apply it in your own projects.

Your Step-by-Step Learning Journey

  • Complete Environment Setup: Start smoothly on Windows by installing Python, checking versions, exploring multiple ways to execute Python scripts, and configuring the PyCharm IDE from scratch.

  • Classes, Objects, and Encapsulation: Build a rock-solid foundation by learning how to define classes, instantiate multiple objects, and manage state using the __init__() method, instance variables, and class variables. You will master instance methods, @classmethod and @staticmethod decorators, and protect your data using private variables, private methods, getter/setter accessors, and the Pythonic @property decorator. You will also explore class destructors, inner classes, and passing objects as arguments.

  • Advanced Class Internals and Inspection: Go deeper into Python’s object model. You will examine how __init__() and the self parameter truly operate, customize string representations with the __str__() dunder method, and write clear class docstrings. Additionally, you will learn how to inspect and optimize classes using built-in functions (dir(), type(), help()) and special class attributes like __dict__, __slots__, __bases__, __name__, __module__, and __doc__.

  • Inheritance and Polymorphism: Learn how to reuse code and design flexible class hierarchies. You will implement single, multi-level, hierarchical, multiple, and hybrid inheritance while properly managing parent-child relationships using super(), protected variables, and private variables. You will also demystify Python’s Method Resolution Order (MRO) and implement dynamic polymorphism through method overriding and Duck Typing.

Enroll today and transform the way you design, structure, and write Python code!

Who this course is for:

  • Beginner Python programmers who understand basic Python syntax and want to master Object-Oriented Programming (OOP) from the ground up, including classes, encapsulation, inheritance, and polymorphism.
  • Students and self-taught developers looking to transition from writing basic procedural scripts to structuring scalable, maintainable, and production-ready Python code.