+ 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.

8th Jan 2020, 7:20 PM
Spuds
Spuds - avatar
1 Answer
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.
8th Jan 2020, 7:48 PM
Jianmin Chen
Jianmin Chen - avatar