In computer programming, the return type (or result type) defines and constrains the data type of the value returned from a subroutine or method. In many programming languages (especially statically-typed programming languages such as C, C++, Java) the return type must be explicitly specified when declaring a function.
In the Java example:
public int someMethodthe return type is int. The program can therefore rely on the method returning a value of type int. Various mechanisms are used for the case where a subroutine does not return any value, e.g., a return type of void is used in some programming languages:
public void returnNothingFamous quotes containing the words return and/or type:
“Or ever the silver cord be loosed, or the golden bowl be broken, or
the pitcher be broken at the fountain, or the wheel broken at the
cistern.
Then shall the dust return to the earth as it was: and the spirit
shall return unto God who gave it.
Vanity of vanities, saith the preacher, all is vanity.”
—Bible: Hebrew Ecclesiastes (l. XII, 67)
“Only that type of story deserves to be called moral that shows us that one has the power within oneself to act, out of the conviction that there is something better, even against ones own inclination.”
—Johann Wolfgang Von Goethe (17491832)