+ 1

How does other work

1st Apr 2017, 5:11 PM
ehsan
2 odpowiedzi
+ 7
'other' works analogically to 'self' - it means the second object argument in class operator method definition. And - as well as 'self' - it's just a naming convention, you can use any name you like :)
1st Apr 2017, 6:48 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
a+b= output
1st Apr 2017, 5:26 PM
Spider
Spider - avatar