+ 1
Could someone please explain how the whole argument passing thing in methods works?
I dont really get where the values get plugged into to code. Its all really confusing. Any help would be appreciated.
1 ответ
0
When you pass a argument to a value, you're basically providing it information. For example, if we use Python, and we create a function like this:
def sum(a, b):
return a + b
Simple. It just gets the sum of two arguments, a and b. a and b are just placeholders for the arguments that are passed into the function.