Can I initialise an output parameter outside the method definition ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I initialise an output parameter outside the method definition ?

13th Jul 2016, 1:36 PM
Deeksha Bhatnagar
Deeksha Bhatnagar - avatar
3 Answers
+ 2
I think You cannot. You can only pass strings through arguments which are used outside any function /method. Hence intitializing isdone within the method itself
13th Jul 2016, 6:06 PM
Lewis miles
Lewis miles - avatar
+ 1
Thanks Lewis
13th Jul 2016, 6:18 PM
Deeksha Bhatnagar
Deeksha Bhatnagar - avatar
0
you can, but it will be changed by method.
13th Nov 2016, 1:23 AM
Cheng Xiongfeng
Cheng Xiongfeng - avatar