Lesson 1️⃣: OOP Attributes & The Constructor Method
Bitesize Key points from this lesson
-
This lesson was focused on Object Oriented Programming (OOP) in Python, specifically on attributes and the constructor method.
-
We learned about the concept of classes and how they are used to create objects.
-
We explored the role of attributes in defining the properties of an object.
-
We also learned about the constructor method
__init__()
and how it is used to initialize object attributes.
-
Lastly, we saw how to create instances of a class and access their attributes (AKA instantiation).
Activities
The best way to improve your programming skills is to practice.