+ 4

Why do methods have to have self as first parameter?

3rd Jun 2018, 6:51 AM
Chris Sheffield
Chris Sheffield - avatar
5 Answers
3rd Jun 2018, 7:16 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 4
Learning python as they state that self must be first parameter when it comes to methods
3rd Jun 2018, 7:07 AM
Chris Sheffield
Chris Sheffield - avatar
+ 2
Thank you will read this
3rd Jun 2018, 7:30 AM
Chris Sheffield
Chris Sheffield - avatar
+ 1
Depending on the language? But methods do not have to have self as first parameter. A supply of code as your reference will help better understand your question. But for methods, you can make as many parameters as you want, or none at all.
3rd Jun 2018, 7:05 AM
Andre Daniel
Andre Daniel - avatar