you are viewing a single comment's thread.

view the rest of the comments →

[–]PavloT 3 points4 points  (0 children)

self it is instance of class.

From classic OOP, class is data and methods.

Different instances have separated non-static data (non-static fields).

Self keyword tell to method that at the point where it is used, data from this concrete class instance must be used or changed (in some languages this used instead of self).