Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Intro to Object-Oriented Programming (OOP) in Python (Summary)

You learned about object-oriented programming (OOP) in Python. Most modern programming languages, such as Java, C#, and C++, follow OOP principles, so the knowledge that you gained here will be applicable no matter where your programming career takes you.

In this video course, you learned how to:

  • Define a class, which is a sort of blueprint for an object
  • Instantiate a class to create an object
  • Use attributes and methods to define the properties and behaviors of an object
  • Use inheritance to create child classes from a parent class
  • Reference a method on a parent class using super()
  • Check if an object inherits from another class using isinstance()

Resources mentioned in this lesson:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 Well done. You completed Intro to Object-Oriented Programming in Python. You’re now fully equipped to start tackling problems with an object-oriented mindset.

00:09 And don’t worry if you feel like you haven’t fully internalized the nuances of OOP. It’s a paradigm that can seem simple on the surface, but as you now know, has incredible depth.

00:20 With time and practice, it’ll all start to come together. Throughout this course, you learned object-oriented programming in Python uses classes as blueprints for objects.

00:30 You can create objects by instantiating those classes. Attributes and methods define the properties and behaviors of objects, respectively. Child classes can use the built-in super() function to invoke parent class methods.

00:43 And you’ve learned how to use the four pillars of object-oriented programming to write clean, maintainable programs. If you’re looking for some immediate practice and examples, check out the tutorial this course is based on, Object-Oriented Programming in Python. Or if you’re in the mood for something different, here’s a few recommendations.

01:02 To learn even more about dunder methods, I recommend Python’s Magic Methods in Classes.

01:08 Want to see a really effective use of class hierarchies? You’ll find that and more in Working With Python’s Built-in Exceptions.

01:15 Or for something completely different, how about a project? Building a Code Image Generator With Python is a great way to get your feet wet in Python web dev, practice a bunch of useful libraries, and make some content for your socials as well.

01:30 Thanks for sticking around till the end. This has been Joseph, wishing you peace and long life.

Become a Member to join the conversation.