0
What is the difference between normal function calling and with self keyword function calling
3 Réponses
+ 3
Here is an example. Do you see the difference.
There are two times a function "show_color(). One inside the object and one outside. And from inside the object both are called.
https://code.sololearn.com/cKq7dvCc3s4T/?ref=app
+ 2
Please tag the relevant programming language!
Do you mean Python? A function with self as parameter is a method – it is a function of a class.
0
Thank you I got my answer👍👍👍