0
how do parameters work
2 odpowiedzi
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
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"