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:
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