Object-oriented programming means that you’re structuring data and operations
on that data together. In Python, you accomplish this by building classes with the
class
keyword. Attributes are the data values, and methods are the
function-like operations that you can perform on classes. In this course, you got
a taste of writing code using class
and its associated attributes and methods.
In this video course, you’ve learned about:
- The advantages of object-oriented programming
- Classes, including how to write them
- Attributes and methods
- The descriptor protocol
Now that you know how to write and use classes, you might wonder what else you can do with them. This course is part of a three-part series. Part two covers how to write reusable hierarchies of classes using inheritance, while part three dives deeper into the philosophy behind writing good object-oriented code.
If you’re looking to continue your learning journey, then Real Python’s Object-Oriented Programming (OOP) With Python learning path is for you. Additionally, you can check out the following resources:
- 📰 Object-Oriented Programming (OOP) in Python 3
- 🎬 Intro to Object-Oriented Programming (OOP) in Python
- 📰 Python Class Constructors: Control Your Object Instantiation
- 📰 Getters and Setters: Manage Attributes in Python
- 🎬 Getters and Setters in Python
- 📰 Python Descriptors: An Introduction
- 📰 Python’s property(): Add Managed Attributes to Your Classes
- 🎬 Managing Attributes With Python’s property()
- 📰 SOLID Principles: Improve Object-Oriented Design in Python
- 🎧 Real Python Podcast Episode 157: Discussing Mojo & Improving Python Object-Oriented Programming
- 📰 Object-Oriented Programming in Python vs Java
- 🎬 Python vs Java: Object Oriented Programming
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
mikehillsnc on Sept. 8, 2023
I thought I knew all this basic stuff. However i learned
about @property
use of dict to define new objects with **kwargs
why repl works
Cant wait for parts 2 and 3
thank you