+ 1
Can someone explain to me what does return do?
9 Antworten
+ 6
it returns the result of a function (most simple explanation)
+ 5
yes return, returns a value. once return has been read by code , the rest of the code is ignored...
+ 5
It a used to return back a value
+ 5
From a method. Or function
+ 4
It returns an object for example when you create an function or method
I,LL give you an example
In Java
public String sayHello(){
Return "hello world";
}
Now this returns hello world which is a data types of string
The return statement
+ 1
It's in the same word re-turn
0
What
0
Return what?