0

Can someone explain me what happen when ''return'' statement gets executed. Thanks in advance

6th Jun 2018, 7:46 PM
Sabitha
2 odpowiedzi
+ 1
It.. returns the value to the caller. You ask a question? I return an answer. I call a method to do a calculation - the method 'returns' the value so I can do something with it. If you don't return we have a bunch of methods that don't speak to each other
6th Jun 2018, 8:21 PM
Dan Walker
Dan Walker - avatar
0
thank you so much walker. Excellent explanation really good
7th Jun 2018, 6:38 AM
Sabitha