how do parameters work | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how do parameters work

16th Aug 2016, 12:46 PM
Erioluwa Soyemi
2 Answers
0
let's imagine that we have an apple. The apple has some statements and behaviors... so let's take behavior "drop" (drop after the apple is grown or by another reason) so it will be "public void drop (string reason){ if (reason != "grownUp"){ apple.statement = "Dropped not by reason of grown" } else { apple.statemnt = "the apple was dropped cause it's been grown"} } that means a parameter it's something that pass through a function to work with it or intract to return or set another statement or behavior
16th Aug 2016, 3:27 PM
Akhmedov Sodiq
Akhmedov Sodiq - avatar
0
Just what #Sodiq Said ..............."a parameter it's something that pass through a function to work with it or intract to return or set another statement or behavior"
7th Oct 2016, 9:28 AM
Asaduzzaman Aminur
Asaduzzaman Aminur - avatar