What is the difference between a function and a method? #17
Answered
by
lukasmiller3
lukasmiller1
asked this question in
Q&A
-
|
What is the difference between a function and a method? |
Beta Was this translation helpful? Give feedback.
Answered by
lukasmiller3
Jan 22, 2026
Replies: 1 comment
-
|
A:Functions are defined at module level and don't have implicit |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukasmiller1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A:Functions are defined at module level and don't have implicit
selfparameter. Methods are defined inside classes and receiveself(instance methods) orcls(class methods) as the first parameter. Methods are bound to instances or classes.