Study
Python · OOP: classes and objects
Defining classes, __init__ and self, instance vs class attributes, methods, and properties.
- self is just the instance, passed automatically as the first argument of a method.
- Class attributes are shared by all instances; instance attributes belong to one object.