Python Self, OOPS Part-2 Self is first parameter for object(Pointer) in Class, and Self is used to call attributes and methods inside class itself. If you are not declared self inside the class it shows an Error. Self is not a keyword it just act word.

2m read timeFrom towardsdev.com
Post cover image
Table of contents
Python Self, OOPS Part-2Detailed working of Self

Sort: