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

OOP in Python - Object Oriented Programming for Beginners

Learn OOP in Python with Scopes, Hoisting, Rest Operator, Arrow Functions, Classes, Destructuring, Generators, Weakmaps
Created byApex Education
Last updated 12/2024
English
English [Auto],

What you'll learn

  • Using ‘let’ and ‘const’ for the scopes, hoisting and declaring variables
  • Using the new type of operators ( spread and rest) to manipulate arrays and function arguments
  • Practicing the strings using Template literals for multi-line statements and using values in statements
  • New Objects, Array , string, number and other built-in methods introduced in ES6
  • Assigning Default values to arguments in functions
  • New way of creating functions using arrow functions and its implementations
  • De-structuring the objects and arrays
  • New Data type Symbols and data structures Sets, Maps, Weak Maps and Weak Sets
  • Object Oriented Programming In ES6
  • Using Modules and Generator Functions
  • Modern way of performing asynchronous functions using Promise
  • The difference between ES5 and ES6

Course content

1 section • 23 lectures • 4h 7m total length
  • 1- Introduction and Course Structure6:42

    Explore object oriented programming in Python, focusing on inheritance, class encapsulation, composition, aggregation, and overriding. Understand how Python differs from other languages and prepare with course structure and practical requirements.

  • 2- Intro to Object Oriented Programming13:57

    Explore the basics of object oriented programming as a design mindset. See how objects with properties and functions enable reusable, maintainable software, while noting pros and cons.

  • 3- Creating a Class in Python9:19

    Explore what a class is in object oriented programming. Learn how to create a class in Python using self and a simple syntax to define methods and properties.

  • 4- Objects of a Class10:06

    Identify instances and objects of a class, view the class as a blueprint for objects, and learn to create objects in Python.

  • 5- Attributes and Methods12:55

    Explore class attributes and methods in Python, distinguishing instance, class, and local attributes, and see how attributes and methods define object behavior with practical coding examples.

  • 6- Constructor function8:18

    Explore how Python uses the init method as a constructor, passing values or setting defaults during object creation, and when non-parameterized constructors are used, with practical coding examples.

  • 7- Getters And Setters10:15

    Explore getters and setters in Python, understand data encapsulation, and see a practical example with a pythonic approach and a coding session.

  • 8- Static variables and methods12:12

    Explore static variables and methods in object oriented programming, focusing on their use in Python, differences from other languages, and a practical coding session.

  • 9 - Class Methods11:34

    Explore class methods in Python, their definition, how they differ from static methods, and a practical coding example using the @classmethod decorator to return class objects.

  • 10- Four Pillars Of OOP Part 115:05

    Explore the first two pillars of object oriented programming, abstraction and encapsulation, and learn how data hiding and getters and setters shape Python design.

  • 11- Four Pillars Of OOP Part 29:52

    Explore inheritance and polymorphism in Python, including single, hierarchical, multi-level, and multiple inheritance, and see how these pillars shape object oriented programming.

  • 12- Access Modifiers16:03

    Explore access modifiers in object oriented programming, including public, private, and protected attributes, and see how Python uses conventions to implement encapsulation and data hiding in class design.

  • 13- Property Method14:48

    Learn how the property method in Python enables getters and setters, using the pythonic decorator syntax with examples of getter, setter, and deleter for clean, readable code.

  • 14- Single Inheritance12:00

    Explore single inheritance in Python by creating a software engineer subclass of engineer, initializing first name, last name, and expertise, and reflecting inherited properties in a uml diagram.

  • 15- Super Method8:56

    Explore the Python super method, its role in inheritance, and how to implement it to access parent class functions and attributes, improving readability and supporting multiple inheritance.

  • 16- Multiple Inheritance11:23

    Explore multiple inheritance in Python by creating a child class from two parent classes, using the super method, and understanding the method resolution order through practical examples.

  • 17- Hierarchical Inheritance9:06

    Explore hierarchical inheritance in Python by creating multiple child classes from a single parent, with practical examples and real-world applicability in software design.

  • 18- Multi-level Inheritance8:32

    Explore multi-level inheritance in Python by building a parent class, a child class, and a grandchild class, and using super to access inherited features.

  • 19- Overriding Methods7:13

    Override methods in object oriented programming change a parent method's behavior in a child class while keeping the same name and parameters, enabling runtime polymorphism in Python.

  • 20- Overloading11:57

    Explore overloading in Python OOP, including method overloading, how parameter counts change, and operator overloading, with examples of a class area, showcasing compile-time polymorphism and practical usage.

  • 21- Association4:27

    Explore association in object oriented programming, showing how objects relate without inheritance, then compare aggregation and composition as forms of association with examples like patient and doctor.

  • 22- Aggregation11:58

    Learn aggregation, a weak one-way has-a relationship where objects such as a location and a person exist independently, with Python demonstrations of passing an object as an argument.

  • 23- Composition10:34

    Explore composition in Python's object-oriented programming, defining a binary association where a department and its students share a strong relationship, its UML structure, and its Python implementation.

Requirements

  • Basic Knowledge of Programming
  • Basic Knowledge of HTML, CSS and JavaScript ( DOM)
  • A proper IDE for quick practice such as VS Code, Brackets

Description

Object-Oriented Programming (OOP) is a powerful and traditional approach used to solve real-world problems in programming. Earlier, languages such as C++ and Java were the primary choices for implementing OOP concepts. However, over time Python has emerged as one of the most widely used programming languages and also supports the object-oriented paradigm effectively. In this approach, real-world entities are represented as objects, making it easier for developers to design and manage complex systems.

Python, being one of the most popular and rapidly growing programming languages today, provides strong support for object-oriented programming. It offers many built-in features that make development easier and more efficient. Although Python does not strictly enforce every principle of OOP like some traditional languages, it still provides most of the essential concepts needed to build structured and reusable code.

The object-oriented paradigm allows developers to design systems in a more organized and flexible way. By using important OOP techniques such as inheritance, polymorphism, encapsulation, and abstraction, programmers can create solutions that are easier to maintain, extend, and reuse. These concepts help developers model real-world scenarios more naturally and build scalable applications.

Python is also widely used in modern fields such as data science, artificial intelligence, and machine learning. In these domains, clear program structure and reusable components are extremely valuable. With strong library support and the use of OOP concepts in many popular frameworks, Python continues to be a preferred choice for developers across various industries.

Who this course is for:

  • Students want to learn and improve their skills in Object Oriented Programming
  • Beginner programmers who wish to understand object oriented programming in-depth for a better carrier
  • Students who has some basic Java skills and want to advance their skills to be Java Professionals