+ 1
why is used (self) in all functions of a class?
why is used (self) in all functions of a class?
2 RĂ©ponses
+ 2
It doesnât need to be âselfâ it can be anything, itâs just the norm. The first parameter of a method is always the object itself (self).
+ 1
âSelfâ is calling to the specific object of a class.