self
represents the current object.
Inside a class → self
refers to the object calling the method.
For class methods → self
refers to the class itself.
self
represents the current object.
Inside a class → self
refers to the object calling the method.
For class methods → self
refers to the class itself.
Leave a Reply